From 91c408468a446541c0372c462cc93ba0760075d1 Mon Sep 17 00:00:00 2001 From: owomomo Date: Sat, 11 May 2019 00:06:43 +0800 Subject: [PATCH] Attempting to fix Issue #43. --- src/fceu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fceu.cpp b/src/fceu.cpp index 991b054a..ff950c9b 100644 --- a/src/fceu.cpp +++ b/src/fceu.cpp @@ -436,10 +436,11 @@ FCEUGI *FCEUI_LoadGameVirtual(const char *name, int OverwriteVidMode, bool silen strcpy(fullname, name); } + // reset loaded game BEFORE it's loading. + ResetGameLoaded(); //file opened ok. start loading. FCEU_printf("Loading %s...\n\n", fullname); GetFileBase(fp->filename.c_str()); - ResetGameLoaded(); //reset parameters so they're cleared just in case a format's loader doesn't know to do the clearing MasterRomInfoParams = TMasterRomInfoParams();