Attempting to fix Issue #43.

This commit is contained in:
owomomo 2019-05-11 00:06:43 +08:00
parent a680d67fa1
commit 91c408468a
1 changed files with 2 additions and 1 deletions

View File

@ -436,10 +436,11 @@ FCEUGI *FCEUI_LoadGameVirtual(const char *name, int OverwriteVidMode, bool silen
strcpy(fullname, name); strcpy(fullname, name);
} }
// reset loaded game BEFORE it's loading.
ResetGameLoaded();
//file opened ok. start loading. //file opened ok. start loading.
FCEU_printf("Loading %s...\n\n", fullname); FCEU_printf("Loading %s...\n\n", fullname);
GetFileBase(fp->filename.c_str()); 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 //reset parameters so they're cleared just in case a format's loader doesn't know to do the clearing
MasterRomInfoParams = TMasterRomInfoParams(); MasterRomInfoParams = TMasterRomInfoParams();