summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/State.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp
index 1398ef7bea..ccd56643da 100644
--- a/Source/Core/Core/State.cpp
+++ b/Source/Core/Core/State.cpp
@@ -424,6 +424,9 @@ void LoadFileStateData(const std::string& filename, std::vector<u8>& ret_data)
void LoadAs(const std::string& filename)
{
+ if (Core::GetState() == Core::CORE_UNINITIALIZED)
+ return;
+
// Stop the core while we load the state
bool wasUnpaused = Core::PauseAndLock(true);