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.

This commit is contained in:
zeromus 2008-12-27 05:34:59 +00:00
parent e72264ea71
commit de0120d6bb
1 changed files with 1 additions and 4 deletions

View File

@ -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;