From 9371fbfa629f9d8425537d6b96c832f1b2aead54 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 5 Oct 2024 20:57:28 +1000 Subject: [PATCH] Add prints to `GPGX.FrameAdvance` --- .../Consoles/Sega/gpgx64/GPGX.IEmulator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IEmulator.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IEmulator.cs index 753a1026ed..31245af3fd 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IEmulator.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.IEmulator.cs @@ -22,6 +22,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx if (_cds != null) { + Console.WriteLine("======= GPGX.FrameAdvance"); + Console.WriteLine($"was: |{_discIndex}|{(_prevDiskPressed ? 'P' : '.')}{(_nextDiskPressed ? 'N' : '.')}|"); var prev = controller.IsPressed("Previous Disk"); var next = controller.IsPressed("Next Disk"); var newDisk = _discIndex; @@ -53,6 +55,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx _discIndex = newDisk; Core.gpgx_swap_disc(_discIndex == -1 ? null : GetCDDataStruct(_cds[_discIndex])); } + Console.WriteLine($"now: |{_discIndex}|{(_prevDiskPressed ? 'P' : '.')}{(_nextDiskPressed ? 'N' : '.')}|"); } // this shouldn't be needed, as nothing has changed