mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-03 07:18:04 +03:00
Core: Return CORE_STOPPING even if hardware is already uninitialized.
This commit is contained in:
parent
b30d5dccbe
commit
49eade69a3
1 changed files with 4 additions and 2 deletions
|
@ -538,15 +538,17 @@ void SetState(EState _State)
|
||||||
|
|
||||||
EState GetState()
|
EState GetState()
|
||||||
{
|
{
|
||||||
|
if (g_bStopping)
|
||||||
|
return CORE_STOPPING;
|
||||||
|
|
||||||
if (g_bHwInit)
|
if (g_bHwInit)
|
||||||
{
|
{
|
||||||
if (CCPU::IsStepping())
|
if (CCPU::IsStepping())
|
||||||
return CORE_PAUSE;
|
return CORE_PAUSE;
|
||||||
else if (g_bStopping)
|
|
||||||
return CORE_STOPPING;
|
|
||||||
else
|
else
|
||||||
return CORE_RUN;
|
return CORE_RUN;
|
||||||
}
|
}
|
||||||
|
|
||||||
return CORE_UNINITIALIZED;
|
return CORE_UNINITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue