UI: Fixed issue with game selection screen getting activated by keypresses when game is paused
This commit is contained in:
parent
afa4ae85e3
commit
5066c89570
3 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -101,6 +101,7 @@ class Console
|
|||
static void ResetLagCounter();
|
||||
|
||||
static bool IsRunning();
|
||||
bool IsPaused();
|
||||
|
||||
static void SetNextFrameOverclockStatus(bool disabled);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue