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];
|
char ROMFilename[512];
|
||||||
bool ROMLoaded = false;
|
bool ROMLoaded = false;
|
||||||
|
bool loadingFile = false;
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* autoLoadMethod()
|
* autoLoadMethod()
|
||||||
@ -477,7 +478,9 @@ int BrowserLoadFile()
|
|||||||
// store the filename (w/o ext) - used for sram/freeze naming
|
// store the filename (w/o ext) - used for sram/freeze naming
|
||||||
StripExt(ROMFilename, browserList[browser.selIndex].filename);
|
StripExt(ROMFilename, browserList[browser.selIndex].filename);
|
||||||
|
|
||||||
|
loadingFile = true;
|
||||||
ROMLoaded = LoadVBAROM();
|
ROMLoaded = LoadVBAROM();
|
||||||
|
loadingFile = false;
|
||||||
|
|
||||||
if (!ROMLoaded)
|
if (!ROMLoaded)
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,7 @@ extern BROWSERINFO browser;
|
|||||||
extern BROWSERENTRY * browserList;
|
extern BROWSERENTRY * browserList;
|
||||||
extern char ROMFilename[512];
|
extern char ROMFilename[512];
|
||||||
extern bool ROMLoaded;
|
extern bool ROMLoaded;
|
||||||
|
extern bool loadingFile;
|
||||||
extern char szpath[MAXPATHLEN];
|
extern char szpath[MAXPATHLEN];
|
||||||
extern bool inSz;
|
extern bool inSz;
|
||||||
|
|
||||||
|
@ -288,7 +288,8 @@ UpdateGUI (void *arg)
|
|||||||
if(updateFound)
|
if(updateFound)
|
||||||
{
|
{
|
||||||
updateFound = false;
|
updateFound = false;
|
||||||
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
|
if(!loadingFile)
|
||||||
|
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user