From cf1ed40d5ac7c8f12a69183e5df7e0b0a6c70559 Mon Sep 17 00:00:00 2001 From: amponzi Date: Fri, 17 Nov 2006 20:28:49 +0000 Subject: [PATCH] - Added special detection for games that use unusual EEPROM address calls - 4kbit EEPROM uses 9 bit and 2 bit autodetect sizes - 64kbit EEPROM uses 12 bit and 22 bit autodetect sizes --- trunk/desmume/src/mc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/desmume/src/mc.c b/trunk/desmume/src/mc.c index 1d6871fd9..33df59a38 100644 --- a/trunk/desmume/src/mc.c +++ b/trunk/desmume/src/mc.c @@ -103,14 +103,14 @@ void mc_reset_com(memory_chip_t *mc) mc->type = MC_TYPE_EEPROM2; mc->size = MC_SIZE_512KBITS; } - else if (mc->autodetectsize == (32+2)) + else if (mc->autodetectsize == (32+2) || mc->autodetectsize == (20+2) || mc->autodetectsize == (10+2)) { // 64 Kbit EEPROM addr = (mc->autodetectbuf[0] << 8) | mc->autodetectbuf[1]; mc->type = MC_TYPE_EEPROM2; mc->size = MC_SIZE_64KBITS; } - else if (mc->autodetectsize == (16+1)) + else if (mc->autodetectsize == (16+1) || mc->autodetectsize == (8+1) || mc->autodetectsize == (1+1)) { // 4 Kbit EEPROM addr = mc->autodetectbuf[0];