add GBC to core preferences, keep the ui as GB sets both, but this prepared for us to be able to set them separately
This commit is contained in:
parent
baa820c0e4
commit
2dda13cdd1
|
@ -313,6 +313,7 @@ namespace BizHawk.Client.Common
|
|||
["NES"] = CoreNames.QuickNes,
|
||||
["SNES"] = CoreNames.Snes9X,
|
||||
["GB"] = CoreNames.Gambatte,
|
||||
["GBC"] = CoreNames.Gambatte,
|
||||
["PCE"] = CoreNames.PceHawk,
|
||||
["PCECD"] = CoreNames.PceHawk,
|
||||
["SGX"] = CoreNames.PceHawk
|
||||
|
|
|
@ -251,27 +251,20 @@ namespace BizHawk.Client.Common
|
|||
|
||||
if (!record)
|
||||
{
|
||||
var preference = systemId;
|
||||
if (preference == "GBC")
|
||||
if (Global.Config.PreferredCores.ContainsKey(systemId))
|
||||
{
|
||||
// We want to treat GBC the same as GB
|
||||
preference = "GB";
|
||||
}
|
||||
|
||||
if (Global.Config.PreferredCores.ContainsKey(preference))
|
||||
{
|
||||
string movieCore = Global.Config.PreferredCores[preference];
|
||||
string movieCore = Global.Config.PreferredCores[systemId];
|
||||
if (string.IsNullOrWhiteSpace(movie.Core))
|
||||
{
|
||||
PopupMessage($"No core specified in the movie file, using the preferred core {Global.Config.PreferredCores[preference]} instead.");
|
||||
PopupMessage($"No core specified in the movie file, using the preferred core {Global.Config.PreferredCores[systemId]} instead.");
|
||||
}
|
||||
else
|
||||
{
|
||||
movieCore = movie.Core;
|
||||
}
|
||||
|
||||
_preferredCores[preference] = Global.Config.PreferredCores[preference];
|
||||
Global.Config.PreferredCores[preference] = movieCore;
|
||||
_preferredCores[systemId] = Global.Config.PreferredCores[systemId];
|
||||
Global.Config.PreferredCores[systemId] = movieCore;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1284,6 +1284,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
private void GambatteCorePick_Click(object sender, EventArgs e)
|
||||
{
|
||||
Config.PreferredCores["GB"] = CoreNames.Gambatte;
|
||||
Config.PreferredCores["GBC"] = CoreNames.Gambatte;
|
||||
|
||||
if (Emulator.SystemId == "GB" || Emulator.SystemId == "GBC")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue