mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-28 12:11:51 +01:00
stop parsing when loading a file
This commit is contained in:
parent
d5e43d1048
commit
93f2826d21
@ -506,6 +506,9 @@ LoadSzFile(char * filepath, unsigned char * rbuffer)
|
||||
// since we're loading a file
|
||||
HaltDeviceThread();
|
||||
|
||||
// halt parsing
|
||||
parseHalt = true;
|
||||
|
||||
file = fopen (filepath, "rb");
|
||||
if (file > 0)
|
||||
{
|
||||
@ -552,6 +555,9 @@ LoadFile (char * rbuffer, char *filepath, u32 length, int method, bool silent)
|
||||
// since we're loading a file
|
||||
HaltDeviceThread();
|
||||
|
||||
// halt parsing
|
||||
parseHalt = true;
|
||||
|
||||
// open the file
|
||||
while(!size && retry == 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user