mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core: SetOnStoppedCallback -> SetOnStateChangedCallback
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user