mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
psp, fix suspend/resume
This commit is contained in:
parent
1ffc8b84f1
commit
f0e6d1e371
1 changed files with 3 additions and 18 deletions
|
@ -756,25 +756,10 @@ void pemu_loop_end(void)
|
|||
pemu_sound_stop();
|
||||
}
|
||||
|
||||
// TODO
|
||||
/* resume from suspend: change to main menu if emu was running */
|
||||
void emu_handle_resume(void)
|
||||
{
|
||||
if (!(PicoIn.AHW & PAHW_MCD)) return;
|
||||
|
||||
// reopen first CD track
|
||||
if (cdd.toc.tracks[0].fd != NULL)
|
||||
{
|
||||
lprintf("emu_HandleResume: reopen %s\n", cdd.toc.tracks[0].fname);
|
||||
pm_close(cdd.toc.tracks[0].fd);
|
||||
cdd.toc.tracks[0].fd = pm_open(cdd.toc.tracks[0].fname);
|
||||
lprintf("reopen %s\n", cdd.toc.tracks[0].fd != NULL ? "ok" : "failed");
|
||||
}
|
||||
|
||||
mp3_reopen_file();
|
||||
|
||||
#if 0 // TODO
|
||||
if (!(Pico_mcd->s68k_regs[0x36] & 1))
|
||||
cdd_change_track(cdd.index, cdd.lba);
|
||||
#endif
|
||||
if (engineState == PGS_Running)
|
||||
engineState = PGS_Menu;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue