move ROM detect code to pico/

This commit is contained in:
notaz 2013-06-26 03:23:44 +03:00
parent 2656e68083
commit 4c2e35547f
8 changed files with 400 additions and 321 deletions

View file

@ -23,6 +23,8 @@ void (*PicoCartMemSetup)(void);
void (*PicoCartLoadProgressCB)(int percent) = NULL;
void (*PicoCDLoadProgressCB)(const char *fname, int percent) = NULL; // handled in Pico/cd/cd_file.c
int PicoGameLoaded;
static void PicoCartDetect(const char *carthw_cfg);
/* cso struct */
@ -592,6 +594,7 @@ int PicoCartInsert(unsigned char *rom, unsigned int romsize, const char *carthw_
else
PicoPower();
PicoGameLoaded = 1;
return 0;
}
@ -621,6 +624,7 @@ void PicoCartUnload(void)
plat_munmap(Pico.rom, rom_alloc_size);
Pico.rom = NULL;
}
PicoGameLoaded = 0;
}
static unsigned int rom_crc32(void)