.cue support, Pico stubs

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@433 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-05-01 11:27:50 +00:00
parent b923ecbe75
commit 9037e45d9f
16 changed files with 530 additions and 161 deletions

View file

@ -528,9 +528,14 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize)
// setup correct memory map for loaded ROM
// call PicoMemReset again due to possible memmap change
if (PicoAHW & PAHW_MCD)
PicoMemSetupCD();
else PicoMemSetup();
switch (PicoAHW) {
default:
elprintf(EL_STATUS|EL_ANOMALY, "starting in unknown hw configuration: %x", PicoAHW);
case 0:
case PAHW_SVP: PicoMemSetup(); break;
case PAHW_MCD: PicoMemSetupCD(); break;
case PAHW_PICO: PicoMemSetupPico(); break;
}
PicoMemReset();
PicoPower();
@ -674,6 +679,13 @@ static void PicoCartDetect(void)
PicoSVPStartup();
}
// Pico
else if (rom_strcmp(0x100, "SEGA PICO") == 0 ||
rom_strcmp(0x100, "IMA IKUNOUJYUKU") == 0) // what is that supposed to mean?
{
PicoInitPico();
}
// Detect 12-in-1 mapper
else if ((name_cmp("ROBOCOP 3") == 0 && Pico.romsize == 0x200000) ||
(rom_strcmp(0x160, "FLICKY") == 0 && Pico.romsize >= 0x200000) ||