From 02746efd63fd28191e1610c00f2d34aea85e369c Mon Sep 17 00:00:00 2001 From: Fortranm Date: Tue, 2 Jul 2024 15:40:45 -0700 Subject: [PATCH] fix the crash from Toggle Link Connection --- .../Consoles/Nintendo/Gameboy/GambatteLink.IEmulator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.IEmulator.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.IEmulator.cs index a1de6b526f6..a30cb00e04d 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.IEmulator.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/GambatteLink.IEmulator.cs @@ -22,7 +22,7 @@ public bool FrameAdvance(IController controller, bool render, bool rendersound = foreach (var s in GBLinkController.BoolButtons) { if (!controller.IsPressed(s)) continue; - Debug.Assert(s[0] is 'P'); + if (s[0] is not 'P') continue; var iSpace = s.IndexOf(' '); var playerNum = int.Parse(s.Substring(startIndex: 1, length: iSpace - 1)); var consoleNum = 0;