From bc21f296a099af2e256f0485140bddd25cdcb773 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Sun, 16 May 2021 11:57:30 -0400 Subject: [PATCH] Romloader: Add `DontTryOtherCores` config setting If set, only the first preference core (whether it be through gamedb or preferredcore or priority or whatever) will be tried, and a failure for it will immediately fail the entire thing. This is mostly a developer feature to aid in debugging. --- src/BizHawk.Client.Common/RomLoader.cs | 2 +- src/BizHawk.Client.Common/config/Config.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/RomLoader.cs b/src/BizHawk.Client.Common/RomLoader.cs index 2ad6908c8a..975c12fd4d 100644 --- a/src/BizHawk.Client.Common/RomLoader.cs +++ b/src/BizHawk.Client.Common/RomLoader.cs @@ -399,7 +399,7 @@ namespace BizHawk.Client.Common } catch (Exception e) { - if (e is MissingFirmwareException || e.InnerException is MissingFirmwareException) + if (_config.DontTryOtherCores || e is MissingFirmwareException || e.InnerException is MissingFirmwareException) throw; exceptions.Add(e); } diff --git a/src/BizHawk.Client.Common/config/Config.cs b/src/BizHawk.Client.Common/config/Config.cs index 879802dafc..e84ee45d03 100644 --- a/src/BizHawk.Client.Common/config/Config.cs +++ b/src/BizHawk.Client.Common/config/Config.cs @@ -337,6 +337,8 @@ namespace BizHawk.Client.Common ["SGX"] = CoreNames.TurboNyma }; + public bool DontTryOtherCores { get; set; } + // ReSharper disable once UnusedMember.Global public string LastWrittenFrom { get; set; } = VersionInfo.MainVersion;