mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
svp compiler direct calls
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@360 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
259ed0ea66
commit
e807ac752b
13 changed files with 238 additions and 126 deletions
|
@ -15,6 +15,8 @@
|
|||
|
||||
static char *rom_exts[] = { "bin", "gen", "smd", "iso" };
|
||||
|
||||
void (*PicoCartUnloadHook)(void) = NULL;
|
||||
|
||||
void (*PicoCartLoadProgressCB)(int percent) = NULL;
|
||||
void (*PicoCDLoadProgressCB)(int percent) = NULL; // handled in Pico/cd/cd_file.c
|
||||
|
||||
|
@ -493,6 +495,11 @@ int PicoCartInsert(unsigned char *rom,unsigned int romsize)
|
|||
Pico.rom=rom;
|
||||
Pico.romsize=romsize;
|
||||
|
||||
if (PicoCartUnloadHook != NULL) {
|
||||
PicoCartUnloadHook();
|
||||
PicoCartUnloadHook = NULL;
|
||||
}
|
||||
|
||||
PicoMemResetHooks();
|
||||
PicoDmaHook = NULL;
|
||||
PicoResetHook = NULL;
|
||||
|
@ -646,7 +653,7 @@ void PicoCartDetect(void)
|
|||
if (name_cmp("Virtua Racing") == 0 ||
|
||||
name_cmp("VIRTUA RACING") == 0)
|
||||
{
|
||||
PicoSVPInit();
|
||||
PicoSVPStartup();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue