From 415f0cc98c3789e01876dd227fa46a6b74729e5b Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Tue, 11 Jun 2024 14:07:23 +1000 Subject: [PATCH] When core preference changes, set for all sysIDs in group see 823ce4f78 --- src/BizHawk.Client.EmuHawk/MainForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/MainForm.cs b/src/BizHawk.Client.EmuHawk/MainForm.cs index f5ca6d9936..620a0af19c 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.cs @@ -113,7 +113,8 @@ namespace BizHawk.Client.EmuHawk // invalid --> default (doing this here rather than when reading config file to allow for hacked-in values, though I'm not sure if that could do anything at the moment --yoshi) var defaultCore = coreNames[0]; Console.WriteLine($"setting preferred core for {groupLabel} etc. to {defaultCore} (was {preferred ?? "null"})"); - Config.PreferredCores[groupLabel] = preferred = defaultCore; + preferred = defaultCore; + foreach (var sysID in appliesTo) Config.PreferredCores[sysID] = preferred; } foreach (ToolStripMenuItem entry in ((ToolStripMenuItem) openedSender).DropDownItems) entry.Checked = entry.Text == preferred; };