mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
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:
parent
65ca3034d4
commit
1cb1584b86
12 changed files with 63 additions and 39 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue