From 07d60c9da19300acee985ec7dc5ee8fa34d9d01e Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sat, 28 Sep 2013 08:20:18 +0000 Subject: [PATCH] core - retail NAND: - add autodetection "Daigassou! Band Brothers DX"; --- desmume/src/addons/slot1_retail_auto.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/desmume/src/addons/slot1_retail_auto.cpp b/desmume/src/addons/slot1_retail_auto.cpp index 7ca3721d6..c8c854408 100644 --- a/desmume/src/addons/slot1_retail_auto.cpp +++ b/desmume/src/addons/slot1_retail_auto.cpp @@ -43,13 +43,15 @@ public: NDS_SLOT1_TYPE selection = NDS_SLOT1_RETAIL_MCROM; //check game ID in core emulator and select right implementation - if(!memcmp(gameInfo.header.gameCode,"UOR",3) || //WarioWare Do It Yourself - !memcmp(gameInfo.header.gameCode,"UXBP",4)) //Jam with the Band + if ((memcmp(gameInfo.header.gameCode, "UOR", 3) == 0) || // WarioWare - D.I.Y. (U)(E)(EUR) / Made in Ore (J) + (memcmp(gameInfo.header.gameCode, "UXBP", 4) == 0) || // Jam with the Band (EUR) + (memcmp(gameInfo.header.gameCode, "AXBJ", 4) == 0) // Daigassou! Band Brothers DX (J) + ) selection = NDS_SLOT1_RETAIL_NAND; mSelectedImplementation = slot1_List[selection]; mSelectedImplementation->connect(); - printf("slot1 auto-selected device type: %s\n",mSelectedImplementation->info()->name()); + printf("Slot1 auto-selected device type: %s\n",mSelectedImplementation->info()->name()); }