diff --git a/BizHawk.Emulation/Consoles/Nintendo/Gameboy/Gambatte.cs b/BizHawk.Emulation/Consoles/Nintendo/Gameboy/Gambatte.cs index 1284660e86..99d84013e4 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/Gameboy/Gambatte.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/Gameboy/Gambatte.cs @@ -54,7 +54,7 @@ namespace BizHawk.Emulation.Consoles.GB Name = "Gameboy Controller", BoolButtons = { - "Up", "Down", "Left", "Right", "A", "B", "Select", "Start" + "Up", "Down", "Left", "Right", "A", "B", "Select", "Start", "Reset" } }; @@ -107,6 +107,9 @@ namespace BizHawk.Emulation.Consoles.GB foreach (var r in MemoryRefreshers) r.RefreshWrite(); + if (Controller["Reset"]) + LibGambatte.gambatte_reset(GambatteState); + LibGambatte.gambatte_runfor(GambatteState, VideoBuffer, 160, soundbuff, ref nsamp); // upload any modified data to the memory domains