simplify movieSession core preference shenanigans
This commit is contained in:
parent
dfe7f8e3ab
commit
9928a88d2c
|
@ -251,25 +251,17 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
if (!record)
|
if (!record)
|
||||||
{
|
{
|
||||||
switch (emulator.SystemId)
|
var preference = emulator.SystemId;
|
||||||
|
if (preference == "GBC")
|
||||||
{
|
{
|
||||||
case "NES":
|
// We want to treat GBC the same as GB
|
||||||
PreferredCores["NES"] = Global.Config.PreferredCores["NES"];
|
preference = "GB";
|
||||||
Global.Config.PreferredCores["NES"] = movie.Core;
|
}
|
||||||
break;
|
|
||||||
case "SNES":
|
if (Global.Config.PreferredCores.ContainsKey(preference))
|
||||||
PreferredCores["SNES"] = Global.Config.PreferredCores["SNES"];
|
{
|
||||||
Global.Config.PreferredCores["SNES"] = movie.Core;
|
PreferredCores[preference] = Global.Config.PreferredCores[preference];
|
||||||
break;
|
Global.Config.PreferredCores[preference] = movie.Core;
|
||||||
case "GBA":
|
|
||||||
PreferredCores["GBA"] = Global.Config.PreferredCores["GBA"];
|
|
||||||
Global.Config.PreferredCores["GBA"] = movie.Core;
|
|
||||||
break;
|
|
||||||
case "GB":
|
|
||||||
case "GBC":
|
|
||||||
PreferredCores["GB"] = Global.Config.PreferredCores["GB"];
|
|
||||||
Global.Config.PreferredCores["GB"] = movie.Core;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue