From 7e265427372be8503ee9c5f11f51daab22639a57 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Sun, 14 Nov 2021 16:25:40 +0100 Subject: [PATCH] Mapper 178: Always reset to menu. --- src/boards/178.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/boards/178.c b/src/boards/178.c index 8f2a8d9..ca60dfe 100644 --- a/src/boards/178.c +++ b/src/boards/178.c @@ -136,6 +136,11 @@ static void M178Power(void) { FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); } +static void M178Reset(void) { + /* Always reset to menu */ + reg[0] = reg[1] = reg[2] = reg[3] = 0; + Sync(); +} static void M178SndClk(int a) { if (pcm_enable) { pcm_latch -= a; @@ -158,6 +163,7 @@ static void StateRestore(int version) { void Mapper178_Init(CartInfo *info) { info->Power = M178Power; + info->Reset = M178Reset; info->Close = M178Close; GameStateRestore = StateRestore; MapIRQHook = M178SndClk;