From de0120d6bbe3071546324525783be59a78aeac35 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 27 Dec 2008 05:34:59 +0000 Subject: [PATCH] revert my recent changes to backupmem autodetection. it fixed some games and broke others. I am disinclined to change it too close to a release. --- desmume/src/mc.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 21fb94ff3..ba5f1d51a 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -145,8 +145,7 @@ void mc_reset_com(memory_chip_t *mc) mc->type = MC_TYPE_EEPROM2; mc->size = MC_SIZE_64KBITS; } - //if it writes a funny number less than 4kbits, then assume it is 4kbit eeprom - else if (mc->autodetectsize <= (16+1)) + else if (mc->autodetectsize == (16+1)) { // 4 Kbit EEPROM addr = mc->autodetectbuf[0]; @@ -164,8 +163,6 @@ void mc_reset_com(memory_chip_t *mc) mc->type = MC_TYPE_FLASH; mc->size = MC_SIZE_2MBITS; */ - - //otherwise, we hope it must be a 64kbits eeprom // 64 Kbit EEPROM addr = (mc->autodetectbuf[0] << 8) | mc->autodetectbuf[1]; mc->type = MC_TYPE_EEPROM2;