From 0d8fc520c406a4d504d59d98ff586dacc88a9c66 Mon Sep 17 00:00:00 2001 From: thelemonman Date: Tue, 15 Oct 2013 20:57:54 +0000 Subject: [PATCH] Add a post_fakeboot hook for the mcrom_debug addon too. --- desmume/src/addons/slot1_retail_auto.cpp | 2 +- desmume/src/addons/slot1_retail_mcrom_debug.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/desmume/src/addons/slot1_retail_auto.cpp b/desmume/src/addons/slot1_retail_auto.cpp index 7a150889e..8720eeb4b 100644 --- a/desmume/src/addons/slot1_retail_auto.cpp +++ b/desmume/src/addons/slot1_retail_auto.cpp @@ -40,7 +40,7 @@ public: virtual void connect() { - NDS_SLOT1_TYPE selection = NDS_SLOT1_RETAIL_MCROM; + NDS_SLOT1_TYPE selection = NDS_SLOT1_RETAIL_DEBUG; //check game ID in core emulator and select right implementation if ((memcmp(gameInfo.header.gameCode, "UOR", 3) == 0) || // WarioWare - D.I.Y. (U)(E)(EUR) / Made in Ore (J) diff --git a/desmume/src/addons/slot1_retail_mcrom_debug.cpp b/desmume/src/addons/slot1_retail_mcrom_debug.cpp index ea231a6ff..aa56abe81 100644 --- a/desmume/src/addons/slot1_retail_mcrom_debug.cpp +++ b/desmume/src/addons/slot1_retail_mcrom_debug.cpp @@ -88,6 +88,12 @@ public: return protocol.read_GCDATAIN(PROCNUM); } + virtual void post_fakeboot(int PROCNUM) + { + // The BIOS leaves the card in NORMAL mode + protocol.mode = eCardMode_NORMAL; + } + virtual void savestate(EMUFILE* os) { protocol.savestate(os);