From cf2d3045148e050272c6fcc4bc318d7da59debbd Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 29 Oct 2024 21:08:21 +0900 Subject: [PATCH] Fixed crash in "test runner" mode caused by console video config overrides --- UI/Config/ConsoleOverrideConfig.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/Config/ConsoleOverrideConfig.cs b/UI/Config/ConsoleOverrideConfig.cs index 6b158ad3d..049da6196 100644 --- a/UI/Config/ConsoleOverrideConfig.cs +++ b/UI/Config/ConsoleOverrideConfig.cs @@ -20,6 +20,10 @@ public class ConsoleOverrideConfig : BaseConfig public static ConsoleOverrideConfig? GetActiveOverride() { + if(MainWindowViewModel.Instance == null) { + return null; + } + RomInfo romInfo = MainWindowViewModel.Instance.RomInfo; if(romInfo.Format == RomFormat.Unknown) { return null;