Remove automatic update check

This commit is contained in:
wiidev 2021-02-04 16:39:24 +00:00
parent 0bc90dbdd4
commit 48956ad8a4
2 changed files with 5 additions and 24 deletions

View File

@ -38,8 +38,6 @@
#include "wpad.h" #include "wpad.h"
#include "sys.h" #include "sys.h"
extern bool updateavailable;
struct discHdr *dvdheader = NULL; struct discHdr *dvdheader = NULL;
static bool Exiting = false; static bool Exiting = false;
@ -905,16 +903,7 @@ int GameBrowseMenu::MainLoop()
UpdateClock(); UpdateClock();
CheckDiscSlotUpdate(); CheckDiscSlotUpdate();
if (updateavailable == true) if (poweroffBtn->GetState() == STATE_CLICKED)
{
gprintf("\tUpdate Available\n");
SetState(STATE_DISABLED);
UpdateApp();
updateavailable = false;
SetState(STATE_DEFAULT);
}
else if (poweroffBtn->GetState() == STATE_CLICKED)
{ {
gprintf("\tpoweroffBtn clicked\n"); gprintf("\tpoweroffBtn clicked\n");
int choice = 0; int choice = 0;

View File

@ -11,6 +11,7 @@
#include "networkops.h" #include "networkops.h"
#include "https.h" #include "https.h"
#include "update.h" #include "update.h"
#include "gecko.h"
#include "settings/ProxySettings.h" #include "settings/ProxySettings.h"
#define PORT 4299 #define PORT 4299
@ -19,10 +20,8 @@
u32 infilesize = 0; u32 infilesize = 0;
u32 uncfilesize = 0; u32 uncfilesize = 0;
bool updateavailable = false;
s32 connection; s32 connection;
static s32 socket; static s32 socket;
static bool updatechecked = false;
static bool networkinitialized = false; static bool networkinitialized = false;
static bool checkincomming = false; static bool checkincomming = false;
static bool waitforanswer = false; static bool waitforanswer = false;
@ -56,6 +55,7 @@ void Initialize_Network(int retries)
getProxyInfo(); getProxyInfo();
wolfSSL_Init(); wolfSSL_Init();
networkinitialized = true; networkinitialized = true;
gprintf("Initialized network\n");
return; return;
} }
} }
@ -248,7 +248,7 @@ void ResumeNetworkWait()
} }
/********************************************************************************* /*********************************************************************************
* Networkthread for background network initialize and update check with idle prio * Networkthread for background network initialize
*********************************************************************************/ *********************************************************************************/
static void *networkinitcallback(void *arg) static void *networkinitcallback(void *arg)
{ {
@ -259,16 +259,8 @@ static void *networkinitcallback(void *arg)
Initialize_Network(); Initialize_Network();
if (networkinitialized == true && updatechecked == false) if (networkinitialized)
{
if (CheckUpdate() > 0)
updateavailable = true;
//suspend thread
updatechecked = true;
networkHalt = true; networkHalt = true;
}
if (checkincomming) if (checkincomming)
NetworkWait(); NetworkWait();