Prevent Advanced loader from pooping all over every other tool, this needs to be refactored

This commit is contained in:
adelikat 2016-02-28 12:15:23 -05:00
parent 4460055da3
commit c333403895
1 changed files with 5 additions and 2 deletions

View File

@ -858,7 +858,7 @@ namespace BizHawk.Client.EmuHawk
public void RebootCore()
{
var ioa = OpenAdvancedSerializer.ParseWithLegacy(CurrentlyOpenRom);
var ioa = OpenAdvancedSerializer.ParseWithLegacy(CurrentlyOpenRomPoopForAdvancedLoaderPleaseRefactorME);
if (ioa is OpenAdvanced_LibretroNoGame)
LoadRom("", CurrentlyOpenRomArgs);
else
@ -3460,7 +3460,8 @@ namespace BizHawk.Client.EmuHawk
}
SetWindowText();
CurrentlyOpenRom = loaderName;
CurrentlyOpenRomPoopForAdvancedLoaderPleaseRefactorME = loaderName;
CurrentlyOpenRom = loaderName.Replace("*OpenRom*", ""); // POOP
HandlePlatformMenus();
_stateSlots.Clear();
UpdateCoreStatusBarButton();
@ -3521,6 +3522,8 @@ namespace BizHawk.Client.EmuHawk
}
}
private string CurrentlyOpenRomPoopForAdvancedLoaderPleaseRefactorME = "";
private static void CommitCoreSettingsToConfig()
{
// save settings object