hack rom loader to keep doing the bullshit we've been doing for 8 years now, where Game.System == "GBC" results in an Emulator with a SystemID. Don't revert without volunteering to fix tasvideos

This commit is contained in:
adelikat 2020-08-09 15:29:41 -05:00
parent c844af3bbb
commit 31bf9b9147
1 changed files with 17 additions and 1 deletions

View File

@ -333,7 +333,23 @@ namespace BizHawk.Client.Common
private IEmulator MakeCoreFromCoreInventory(CoreInventoryParameters cip)
{
_config.PreferredCores.TryGetValue(cip.Game.System, out var preferredCore);
var preferredSystem = cip.Game.System;
if (preferredSystem == "GBC")
{
preferredSystem = "GB";
}
if (preferredSystem.In("GG", "SG"))
{
preferredSystem = "SMS";
}
if (preferredSystem == "SGX")
{
preferredSystem = "PCE";
}
_config.PreferredCores.TryGetValue(preferredSystem, out var preferredCore);
var forcedCore = cip.Game.ForcedCore;
var cores = CoreInventory.Instance.GetCores(cip.Game.System)
.OrderBy(c =>