mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-29 05:54:17 +01:00
stop parsing when loading a file
This commit is contained in:
parent
141c6373c9
commit
e5b857203c
@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Visual Boy Advance GX
|
* Visual Boy Advance GX
|
||||||
*
|
*
|
||||||
* Tantric September 2008
|
* Tantric 2008-2009
|
||||||
*
|
*
|
||||||
* fileop.cpp
|
* fileop.cpp
|
||||||
*
|
*
|
||||||
@ -505,6 +505,9 @@ LoadSzFile(char * filepath, unsigned char * rbuffer)
|
|||||||
// since we're loading a file
|
// since we're loading a file
|
||||||
HaltDeviceThread();
|
HaltDeviceThread();
|
||||||
|
|
||||||
|
// halt parsing
|
||||||
|
parseHalt = true;
|
||||||
|
|
||||||
file = fopen (filepath, "rb");
|
file = fopen (filepath, "rb");
|
||||||
if (file > 0)
|
if (file > 0)
|
||||||
{
|
{
|
||||||
@ -551,6 +554,9 @@ LoadFile (char * rbuffer, char *filepath, u32 length, int method, bool silent)
|
|||||||
// since we're loading a file
|
// since we're loading a file
|
||||||
HaltDeviceThread();
|
HaltDeviceThread();
|
||||||
|
|
||||||
|
// halt parsing
|
||||||
|
parseHalt = true;
|
||||||
|
|
||||||
// open the file
|
// open the file
|
||||||
while(!size && retry == 1)
|
while(!size && retry == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user