From e5b857203c35481854dc92e29ae3e0e07e1e04f5 Mon Sep 17 00:00:00 2001 From: dborth Date: Wed, 8 Jul 2009 20:26:05 +0000 Subject: [PATCH] stop parsing when loading a file --- source/ngc/fileop.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index f6af592..32d4893 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -1,7 +1,7 @@ /**************************************************************************** * Visual Boy Advance GX * - * Tantric September 2008 + * Tantric 2008-2009 * * fileop.cpp * @@ -505,6 +505,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) { @@ -551,6 +554,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) {