mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Core: Make AddOnStateChangedCallback use HookableEvent.
This commit is contained in:
@@ -288,7 +288,7 @@ int main(const int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
Core::AddOnStateChangedCallback([](const Core::State state) {
|
||||
auto core_state_changed_hook = Core::AddOnStateChangedCallback([](const Core::State state) {
|
||||
if (state == Core::State::Uninitialized)
|
||||
s_platform->Stop();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user