fix breakage from june of opening libretro cores (fixes #1357)

@asnivor please check loading bundler XMLs
This commit is contained in:
zeromus 2018-11-02 15:48:30 -04:00
parent dac6c0a062
commit 2948d7597a
1 changed files with 33 additions and 28 deletions

View File

@ -3659,11 +3659,15 @@ namespace BizHawk.Client.EmuHawk
CoreFileProvider.SyncCoreCommInputSignals(nextComm);
InputManager.SyncControls();
if (Path.GetExtension(loaderName.Replace("*OpenRom*", "").Replace("|", "")).ToLower() == ".xml")
if (ioa is OpenAdvanced_OpenRom)
{
OpenAdvanced_OpenRom ioa_openRom = ioa as OpenAdvanced_OpenRom;
if (Path.GetExtension(ioa_openRom.Path).ToLower() == ".xml")
{
// this is a multi-disk bundler file
// determine the xml assets and create RomStatusDetails for all of them
var xmlGame = XmlGame.Create(new HawkFile(loaderName.Replace("*OpenRom*", "")));
var xmlGame = XmlGame.Create(new HawkFile(ioa_openRom.Path));
StringWriter xSw = new StringWriter();
@ -3690,6 +3694,7 @@ namespace BizHawk.Client.EmuHawk
Emulator.CoreComm.RomStatusDetails = xSw.ToString();
Emulator.CoreComm.RomStatusAnnotation = "Multi-disk bundler";
}
}
if (Emulator is TI83 && Global.Config.TI83autoloadKeyPad)
{