summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorMichael M <mchtly@gmail.com>2017-09-04 10:57:42 -0700
committerMichael M <mchtly@gmail.com>2017-09-13 17:30:18 -0700
commit8e805dcbf43505aaf5b9af06f6f23159f3c083e4 (patch)
tree9abb11e83b43f66a96701527e9bf027b89155a64 /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent22a9a08b2454b48ea017e8733e69caf63f3717dd (diff)
Core: SetOnStoppedCallback -> SetOnStateChangedCallback
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 37860057aa..ecd2d3ba88 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -392,7 +392,10 @@ int main(int argc, char* argv[])
UICommon::SetUserDirectory(user_directory);
UICommon::Init();
- Core::SetOnStoppedCallback([]() { s_running.Clear(); });
+ Core::SetOnStateChangedCallback([](Core::State state) {
+ if (state == Core::State::Uninitialized)
+ s_running.Clear();
+ });
platform->Init();
// Shut down cleanly on SIGINT and SIGTERM