mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
move ROM detect code to pico/
This commit is contained in:
parent
2656e68083
commit
4c2e35547f
8 changed files with 400 additions and 321 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue