change backupmem autodetection to catch more cases of unusual usage patterns
This commit is contained in:
parent
2d7891cbec
commit
56ba7941a1
|
@ -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]
|
- 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]
|
- Added a bunch of crazy templates to the cpu and mmu for minor speed boosts [zeromus]
|
||||||
- Add secure area decryption from ndstool [zeromus]
|
- Add secure area decryption from ndstool [zeromus]
|
||||||
|
- change backupmem autodetection to catch more cases of unusual usage patterns [zeromus]
|
||||||
Graphics:
|
Graphics:
|
||||||
- Added gfx3d module which emulates the whole GE as part of the core emu. [zeromus]
|
- 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.
|
- Moved the windows/cocoa OGLRender to the emu core and replace ogl_collector.
|
||||||
|
|
|
@ -145,7 +145,8 @@ void mc_reset_com(memory_chip_t *mc)
|
||||||
mc->type = MC_TYPE_EEPROM2;
|
mc->type = MC_TYPE_EEPROM2;
|
||||||
mc->size = MC_SIZE_64KBITS;
|
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
|
// 4 Kbit EEPROM
|
||||||
addr = mc->autodetectbuf[0];
|
addr = mc->autodetectbuf[0];
|
||||||
|
@ -163,6 +164,8 @@ void mc_reset_com(memory_chip_t *mc)
|
||||||
mc->type = MC_TYPE_FLASH;
|
mc->type = MC_TYPE_FLASH;
|
||||||
mc->size = MC_SIZE_2MBITS;
|
mc->size = MC_SIZE_2MBITS;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//otherwise, we hope it must be a 64kbits eeprom
|
||||||
// 64 Kbit EEPROM
|
// 64 Kbit EEPROM
|
||||||
addr = (mc->autodetectbuf[0] << 8) | mc->autodetectbuf[1];
|
addr = (mc->autodetectbuf[0] << 8) | mc->autodetectbuf[1];
|
||||||
mc->type = MC_TYPE_EEPROM2;
|
mc->type = MC_TYPE_EEPROM2;
|
||||||
|
|
Loading…
Reference in New Issue