reset behavior changed, Puggsy detection added

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@405 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-03-30 20:24:17 +00:00
parent 65ca3034d4
commit 1cb1584b86
12 changed files with 63 additions and 39 deletions

View file

@ -530,7 +530,8 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize)
else PicoMemSetup();
PicoMemReset();
return PicoReset(1);
PicoPower();
return 0;
}
int PicoCartUnload(void)
@ -597,6 +598,12 @@ static void PicoCartDetect(void)
sram_size = 0x004000;
}
// this game actually doesn't have SRAM, but some weird protection
if (rom_strcmp(0x120, "PUGGSY") == 0)
{
SRam.start = SRam.end = sram_size = 0;
}
if (sram_size)
{
SRam.data = (unsigned char *) calloc(sram_size, 1);