prevent update notification from interfering with game loading

This commit is contained in:
dborth 2010-03-15 23:18:55 +00:00
parent 276e68e92f
commit d334f777e8
3 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,7 @@ bool inSz = false;
char ROMFilename[512];
bool ROMLoaded = false;
bool loadingFile = false;
/****************************************************************************
* autoLoadMethod()
@ -477,7 +478,9 @@ int BrowserLoadFile()
// store the filename (w/o ext) - used for sram/freeze naming
StripExt(ROMFilename, browserList[browser.selIndex].filename);
loadingFile = true;
ROMLoaded = LoadVBAROM();
loadingFile = false;
if (!ROMLoaded)
{

View File

@ -40,6 +40,7 @@ extern BROWSERINFO browser;
extern BROWSERENTRY * browserList;
extern char ROMFilename[512];
extern bool ROMLoaded;
extern bool loadingFile;
extern char szpath[MAXPATHLEN];
extern bool inSz;

View File

@ -288,7 +288,8 @@ UpdateGUI (void *arg)
if(updateFound)
{
updateFound = false;
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
if(!loadingFile)
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
}
#endif