From 15efbf2dd371b223a03baa0ac6cd9a1789038e65 Mon Sep 17 00:00:00 2001 From: "avihal@gmail.com" Date: Sun, 20 Mar 2011 12:32:54 +0000 Subject: [PATCH] Patch by pseudonim: Disable the state load/save menus when no active VM. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4463 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/System/SysCoreThread.cpp | 3 ++- pcsx2/gui/UpdateUI.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pcsx2/System/SysCoreThread.cpp b/pcsx2/System/SysCoreThread.cpp index 3eed44ff3b..e5c3a29acb 100644 --- a/pcsx2/System/SysCoreThread.cpp +++ b/pcsx2/System/SysCoreThread.cpp @@ -15,7 +15,7 @@ #include "PrecompiledHeader.h" #include "Common.h" - +#include "gui/App.h" #include "IopBios.h" #include "Counters.h" @@ -240,6 +240,7 @@ bool SysCoreThread::StateCheckInThread() void SysCoreThread::DoCpuExecute() { m_hasActiveMachine = true; + UI_EnableSysActions(); Cpu->Execute(); } diff --git a/pcsx2/gui/UpdateUI.cpp b/pcsx2/gui/UpdateUI.cpp index ebc9160399..a8605a46be 100644 --- a/pcsx2/gui/UpdateUI.cpp +++ b/pcsx2/gui/UpdateUI.cpp @@ -46,7 +46,8 @@ void UI_UpdateSysControls() sApp.PostAction( CoreThreadStatusEvent( CoreThread_Indeterminate ) ); - _SaveLoadStuff( true ); + //_SaveLoadStuff( true ); + _SaveLoadStuff( SysHasValidState() ); } void UI_DisableSysReset()