added 12-in-1 mapper to carthw

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@369 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-03-05 18:50:28 +00:00
parent 48df6e9e54
commit 757f8dae1a
7 changed files with 87 additions and 22 deletions

View file

@ -640,20 +640,29 @@ void PicoCartDetect(void)
SRam.eeprom_bit_out= 7;
}
// SVP detection
else if (name_cmp("Virtua Racing") == 0 ||
name_cmp("VIRTUA RACING") == 0)
{
PicoSVPStartup();
}
// Detect 4-in-1 and 12-in-1
else if ((name_cmp("ROBOCOP 3") && Pico.romsize == 0x200000) ||
(rom_strcmp(0x160, "FLICKY") && Pico.romsize == 0x200000))
{
carthw_12in1_startup();
}
// Some games malfunction if SRAM is not filled with 0xff
if (name_cmp("DINO DINI'S SOCCER") == 0 ||
name_cmp("MICRO MACHINES II") == 0)
{
memset(SRam.data, 0xff, sram_size);
}
// Unusual region 'code'
if (rom_strcmp(0x1f0, "EUROPE") == 0)
*(int *) (Pico.rom+0x1f0) = 0x20204520;
// SVP detection
if (name_cmp("Virtua Racing") == 0 ||
name_cmp("VIRTUA RACING") == 0)
{
PicoSVPStartup();
}
}