Skip to content

Commit

Permalink
Fixed crash in "test runner" mode caused by console video config over…
Browse files Browse the repository at this point in the history
…rides
  • Loading branch information
SourMesen committed Oct 29, 2024
1 parent e0ccc20 commit cf2d304
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UI/Config/ConsoleOverrideConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public class ConsoleOverrideConfig : BaseConfig<GameConfig>

public static ConsoleOverrideConfig? GetActiveOverride()
{
if(MainWindowViewModel.Instance == null) {
return null;
}

RomInfo romInfo = MainWindowViewModel.Instance.RomInfo;
if(romInfo.Format == RomFormat.Unknown) {
return null;
Expand Down

0 comments on commit cf2d304

Please sign in to comment.