change backupmem autodetection to catch more cases of unusual usage patterns

This commit is contained in:
zeromus 2008-12-26 08:24:26 +00:00
parent 2d7891cbec
commit 56ba7941a1
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,7 @@
- Add functions for a lid open/close. Holding key (default "Backspace" in Windows port) while game is freeze/non freeze. [CrazyMax]
- Added a bunch of crazy templates to the cpu and mmu for minor speed boosts [zeromus]
- Add secure area decryption from ndstool [zeromus]
- change backupmem autodetection to catch more cases of unusual usage patterns [zeromus]
Graphics:
- Added gfx3d module which emulates the whole GE as part of the core emu. [zeromus]
- Moved the windows/cocoa OGLRender to the emu core and replace ogl_collector.

View File

@ -145,7 +145,8 @@ void mc_reset_com(memory_chip_t *mc)
mc->type = MC_TYPE_EEPROM2;
mc->size = MC_SIZE_64KBITS;
}
else if (mc->autodetectsize == (16+1))
//if it writes a funny number less than 4kbits, then assume it is 4kbit eeprom
else if (mc->autodetectsize <= (16+1))
{
// 4 Kbit EEPROM
addr = mc->autodetectbuf[0];
@ -163,6 +164,8 @@ 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;