Skip to content

Instantly share code, notes, and snippets.

@Subv
Created November 19, 2017 18:58
Show Gist options
  • Select an option

  • Save Subv/8abb31c9859ab8711ec8385dca4736e1 to your computer and use it in GitHub Desktop.

Select an option

Save Subv/8abb31c9859ab8711ec8385dca4736e1 to your computer and use it in GitHub Desktop.
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 41a97213..268d4870 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -122,7 +122,8 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file
}
void System::PrepareReschedule() {
- cpu_core->PrepareReschedule();
+ if (cpu_core)
+ cpu_core->PrepareReschedule();
reschedule_pending = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment