mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
Handle rebooting of machine after exiting test mode of some games.
This commit is contained in:
parent
e9289bdc0b
commit
34bb7555d5
3 changed files with 51 additions and 16 deletions
|
@ -242,6 +242,8 @@ void CPS2VM::PauseAsync()
|
|||
void CPS2VM::Reset()
|
||||
{
|
||||
assert(m_nStatus == PAUSED);
|
||||
BeforeExecutableReloaded = ExecutableReloadedHandler();
|
||||
AfterExecutableReloaded = ExecutableReloadedHandler();
|
||||
ResetVM();
|
||||
}
|
||||
|
||||
|
@ -789,7 +791,15 @@ void CPS2VM::ReloadExecutable(const char* executablePath, const CPS2OS::Argument
|
|||
ResetVM();
|
||||
memcpy(m_iop->m_spuRam, savedSpuRam.data(), PS2::SPU_RAM_SIZE);
|
||||
}
|
||||
if(BeforeExecutableReloaded)
|
||||
{
|
||||
BeforeExecutableReloaded(this);
|
||||
}
|
||||
m_ee->m_os->BootFromVirtualPath(executablePath, arguments);
|
||||
if(AfterExecutableReloaded)
|
||||
{
|
||||
AfterExecutableReloaded(this);
|
||||
}
|
||||
}
|
||||
|
||||
void CPS2VM::OnCrtModeChange()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue