mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Core: Fix PauseAndLock segfaulting under certain circumstances
This can happen if it's called before the core has fully initialized.
This commit is contained in:
@ -750,7 +750,7 @@ void RequestRefreshInfo()
|
|||||||
static bool PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
static bool PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
||||||
{
|
{
|
||||||
// WARNING: PauseAndLock is not fully threadsafe so is only valid on the Host Thread
|
// WARNING: PauseAndLock is not fully threadsafe so is only valid on the Host Thread
|
||||||
if (!IsRunning())
|
if (!IsRunningAndStarted())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
bool was_unpaused = true;
|
bool was_unpaused = true;
|
||||||
|
Reference in New Issue
Block a user