From f9b4229fd58403e8ff22e105e1d6274c3e9265dc Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Sun, 20 Oct 2013 17:19:25 +0000 Subject: [PATCH] core: - add backup size hack for Dementium II; --- desmume/src/mc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 5e688bb48..18be378bb 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -283,6 +283,7 @@ void BackupDevice::detect() default: //the archaic case: write the address and then some modulo-4 number of bytes //why modulo 4? who knows. + if(!memcmp(gameInfo.header.gameCode,"BDE", 3)) { addr_size = 2; break; } // Dementium II //SM64 (KOR) makes it here with autodetect_size=11 and nothing interesting in the buffer addr_size = autodetect_size & 3; break;