From c392b24d2279430f3cce862eaf65b1de513593f0 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 8 Oct 2012 18:55:25 +0000 Subject: [PATCH] libsnescore: eliminate errant querying of "P1 ", et al in controller routine --- BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs index 5a85087783..19e7924284 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs @@ -485,6 +485,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES case LibsnesDll.SNES_DEVICE_ID.JOYPAD_R: key += "R"; break; case LibsnesDll.SNES_DEVICE_ID.JOYPAD_SELECT: key += "Select"; break; case LibsnesDll.SNES_DEVICE_ID.JOYPAD_START: key += "Start"; break; + default: return 0; } return (ushort)(Controller[key] ? 1 : 0);