mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-04 20:00:43 -04: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