Abort loading a save state if emulation isn't running.
This commit is contained in:
parent
07da9cbcf4
commit
3e60979000
|
@ -424,6 +424,9 @@ void LoadFileStateData(const std::string& filename, std::vector<u8>& ret_data)
|
||||||
|
|
||||||
void LoadAs(const std::string& filename)
|
void LoadAs(const std::string& filename)
|
||||||
{
|
{
|
||||||
|
if (Core::GetState() == Core::CORE_UNINITIALIZED)
|
||||||
|
return;
|
||||||
|
|
||||||
// Stop the core while we load the state
|
// Stop the core while we load the state
|
||||||
bool wasUnpaused = Core::PauseAndLock(true);
|
bool wasUnpaused = Core::PauseAndLock(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue