From 8e805dcbf43505aaf5b9af06f6f23159f3c083e4 Mon Sep 17 00:00:00 2001 From: Michael M Date: Mon, 4 Sep 2017 10:57:42 -0700 Subject: Core: SetOnStoppedCallback -> SetOnStateChangedCallback --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp') 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 -- cgit v1.2.3