From 123dbcc46dccec791991048dd2ecc6ba55dafa3e Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 19 May 2020 20:46:07 -0500 Subject: [PATCH] make uzebox and pcfx games not throw an exception on load, fixes #2022 --- src/BizHawk.Client.Common/SystemInfo.cs | 4 ++++ src/BizHawk.Client.EmuHawk/Extensions/CoreExtensions.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/BizHawk.Client.Common/SystemInfo.cs b/src/BizHawk.Client.Common/SystemInfo.cs index 16532c6ce9..b74e8af724 100644 --- a/src/BizHawk.Client.Common/SystemInfo.cs +++ b/src/BizHawk.Client.Common/SystemInfo.cs @@ -231,6 +231,10 @@ namespace BizHawk.Client.Common public static SystemInfo Sgb { get; } = new SystemInfo("SGB", CoreSystem.SuperGameBoy, 4); + public static SystemInfo Pcfx { get; } = new SystemInfo("PCFX", CoreSystem.PcFx, 1); + + public static SystemInfo UzeBox { get; } = new SystemInfo("uzem", CoreSystem.UzeBox, 1); + /// /// Get a by its /// diff --git a/src/BizHawk.Client.EmuHawk/Extensions/CoreExtensions.cs b/src/BizHawk.Client.EmuHawk/Extensions/CoreExtensions.cs index 94876b9051..8ecc5fd005 100644 --- a/src/BizHawk.Client.EmuHawk/Extensions/CoreExtensions.cs +++ b/src/BizHawk.Client.EmuHawk/Extensions/CoreExtensions.cs @@ -142,6 +142,10 @@ namespace BizHawk.Client.EmuHawk.CoreExtensions return SystemInfo.O2; case "MAME": return SystemInfo.Mame; + case "uzem": + return SystemInfo.UzeBox; + case "PCFX": + return SystemInfo.Pcfx; } } }