mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
prevent update notification from interfering with game loading
This commit is contained in:
parent
53936427f7
commit
ca8055657d
@ -39,6 +39,7 @@ static char szpath[MAXPATHLEN];
|
||||
static bool inSz = false;
|
||||
|
||||
char romFilename[256];
|
||||
bool loadingFile = false;
|
||||
|
||||
/****************************************************************************
|
||||
* autoLoadMethod()
|
||||
@ -475,6 +476,8 @@ int BrowserLoadFile()
|
||||
|
||||
// store the filename (w/o ext) - used for ram/state naming
|
||||
StripExt(romFilename, browserList[browser.selIndex].filename);
|
||||
|
||||
loadingFile = true;
|
||||
|
||||
if(!inSz)
|
||||
{
|
||||
@ -493,6 +496,8 @@ int BrowserLoadFile()
|
||||
BrowserChangeFolder();
|
||||
}
|
||||
}
|
||||
|
||||
loadingFile = false;
|
||||
|
||||
if (filesize <= 0)
|
||||
{
|
||||
|
@ -50,6 +50,7 @@ enum
|
||||
};
|
||||
|
||||
extern char romFilename[];
|
||||
extern bool loadingFile;
|
||||
|
||||
bool MakeFilePath(char filepath[], int type, char * filename = NULL, int filenum = -2);
|
||||
int UpdateDirName();
|
||||
|
@ -303,7 +303,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