don't wait for network init before entering game

This commit is contained in:
dborth 2009-06-22 20:04:43 +00:00
parent 2bfce2dd57
commit 83b4508566
3 changed files with 8 additions and 2 deletions

View File

@ -77,6 +77,11 @@ HaltDeviceThread()
{
deviceHalt = true;
#ifdef HW_RVL
if(inNetworkInit) // don't wait for network to initialize
return;
#endif
// wait for thread to finish
while(!LWP_ThreadIsSuspended(devicethread))
usleep(100);
@ -122,8 +127,8 @@ devicecallback (void *arg)
}
}
InitializeNetwork(SILENT);
UpdateCheck();
InitializeNetwork(SILENT);
#else
if(isMounted[METHOD_SD_SLOTA])
{

View File

@ -22,7 +22,7 @@
#include "http.h"
#include "filebrowser.h"
static bool inNetworkInit = false;
bool inNetworkInit = false;
static bool networkInit = false;
static bool autoNetworkInit = true;
static bool networkShareInit = false;

View File

@ -18,5 +18,6 @@ bool ConnectShare (bool silent);
void CloseShare();
extern bool updateFound;
extern bool inNetworkInit;
#endif