mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
PSP sustend/resume and stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@306 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
ff6b7429bb
commit
ea08c2967b
9 changed files with 98 additions and 5 deletions
|
@ -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