From 33571d4cd3880010546c96d9f5cde2126afeed17 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 15 Feb 2025 04:36:34 +1000 Subject: [PATCH] Set `GPGX.PCRegisterName` correctly in SMS/etc. mode (resolves #4226) --- .../Consoles/Sega/gpgx64/GPGX.IDisassembler.cs | 2 +- src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IDisassembler.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IDisassembler.cs index cdd4aa5b56..acf8505e70 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IDisassembler.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IDisassembler.cs @@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx } } - public string PCRegisterName => "M68K PC"; + public string PCRegisterName { get; } public IEnumerable AvailableCpus { get; } = [ "M68000" ]; diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs index 72eef4580b..1f640ec56c 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs @@ -48,6 +48,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx _ => throw new InvalidOperationException("Invalid system id") }; } + PCRegisterName = SystemId is VSystemID.Raw.GEN ? "M68K PC" : "Z80 pc"; // three or six button? // http://www.sega-16.com/forum/showthread.php?4398-Forgotten-Worlds-giving-you-GAME-OVER-immediately-Fix-inside&highlight=forgotten%20worlds