stop parsing when loading a file

This commit is contained in:
dborth 2009-07-08 20:25:52 +00:00
parent 3dd7f60c54
commit 530e028c13

View File

@ -503,6 +503,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)
{
@ -549,6 +552,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)
{