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:
notaz 2007-11-25 22:43:35 +00:00
parent ff6b7429bb
commit ea08c2967b
9 changed files with 98 additions and 5 deletions

View file

@ -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();
}