fix oopsie loading cds in gpgx after recent romloader cleanups. fixes #2252

This commit is contained in:
zeromus 2020-07-27 00:57:51 -04:00
parent 2cdc978e2f
commit 503469e4e0
1 changed files with 4 additions and 2 deletions

View File

@ -72,8 +72,6 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
CoreComm = lp.Comm;
_romfile = lp.Roms.FirstOrDefault().RomData;
if (lp.Discs.Count > 0)
{
_cds = lp.Discs.Select(d => d.DiscData).ToArray();
@ -81,6 +79,10 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
Core.gpgx_set_cdd_callback(cd_callback_handle);
DriveLightEnabled = true;
}
else
{
_romfile = lp.Roms.FirstOrDefault().RomData;
}
LibGPGX.INPUT_SYSTEM system_a = SystemForSystem(_syncSettings.ControlTypeLeft);
LibGPGX.INPUT_SYSTEM system_b = SystemForSystem(_syncSettings.ControlTypeRight);