mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
PSP sustend/resume and stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@306 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f060b8b912
commit
677b5dd814
9 changed files with 98 additions and 5 deletions
16
psp/emu.c
16
psp/emu.c
|
@ -1075,3 +1075,19 @@ void emu_ResetGame(void)
|
|||
reset_timing = 1;
|
||||
}
|
||||
|
||||
void emu_HandleResume(void)
|
||||
{
|
||||
if (!(PicoMCD & 1)) return;
|
||||
|
||||
// reopen files..
|
||||
if (Pico_mcd->TOC.Tracks[0].F != NULL)
|
||||
{
|
||||
lprintf("emu_HandleResume: reopen %s\n", romFileName);
|
||||
pm_close(Pico_mcd->TOC.Tracks[0].F);
|
||||
Pico_mcd->TOC.Tracks[0].F = pm_open(romFileName);
|
||||
lprintf("reopen %s\n", Pico_mcd->TOC.Tracks[0].F != NULL ? "ok" : "failed");
|
||||
}
|
||||
|
||||
mp3_reopen_file();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue