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:
Jules Blok 2014-07-08 00:47:57 +02:00
commit db7e746cb4
10 changed files with 21 additions and 24 deletions

View file

@ -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