mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-24 00:49:18 +00:00
Check whether the core is running instead of checking if it is unitialized.
This properly handles the stopping state and more accurately represents the intended check.
This commit is contained in:
parent
ad1b61af2e
commit
db7e746cb4
10 changed files with 21 additions and 24 deletions
|
|
@ -424,7 +424,7 @@ void LoadFileStateData(const std::string& filename, std::vector<u8>& ret_data)
|
|||
|
||||
void LoadAs(const std::string& filename)
|
||||
{
|
||||
if (Core::GetState() == Core::CORE_UNINITIALIZED)
|
||||
if (!Core::IsRunning())
|
||||
return;
|
||||
|
||||
// Stop the core while we load the state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue