UI: Fixed issue with game selection screen getting activated by keypresses when game is paused

This commit is contained in:
Souryo 2017-10-03 18:18:29 -04:00
parent afa4ae85e3
commit 5066c89570
3 changed files with 8 additions and 2 deletions

View file

@ -484,7 +484,12 @@ void Console::Run()
bool Console::IsRunning()
{
return !Instance->_stopLock.IsFree() && !Instance->_runLock.IsFree();
return !Instance->_stopLock.IsFree();
}
bool Console::IsPaused()
{
return _runLock.IsFree();
}
void Console::UpdateNesModel(bool sendNotification)

View file

@ -101,6 +101,7 @@ class Console
static void ResetLagCounter();
static bool IsRunning();
bool IsPaused();
static void SetNextFrameOverclockStatus(bool disabled);

View file

@ -887,7 +887,7 @@ shared_ptr<MemoryAccessCounter> Debugger::GetMemoryAccessCounter()
bool Debugger::IsExecutionStopped()
{
return _executionStopped || !_console->IsRunning();
return _executionStopped || _console->IsPaused();
}
void Debugger::GetAbsoluteAddressAndType(uint32_t relativeAddr, AddressTypeInfo* info)