[Project64] be able to load/save states when loaded but not running
This commit is contained in:
parent
44b887f465
commit
d4ef667aa7
|
@ -91,6 +91,22 @@ CN64System::~CN64System()
|
|||
|
||||
void CN64System::ExternalEvent(SystemEvent action)
|
||||
{
|
||||
if (action == SysEvent_LoadMachineState &&
|
||||
!g_Settings->LoadBool(GameRunning_CPU_Running) &&
|
||||
g_BaseSystem != NULL &&
|
||||
g_BaseSystem->LoadState())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (action == SysEvent_SaveMachineState &&
|
||||
!g_Settings->LoadBool(GameRunning_CPU_Running) &&
|
||||
g_BaseSystem != NULL &&
|
||||
g_BaseSystem->SaveState())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case SysEvent_Profile_GenerateLogs:
|
||||
|
|
Loading…
Reference in New Issue