mirror of
https://github.com/dborth/vbagx.git
synced 2024-12-27 03:01:50 +01:00
prevent update notification from interfering with game loading
This commit is contained in:
parent
276e68e92f
commit
d334f777e8
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user