Core: Make AddOnStateChangedCallback use HookableEvent.
This commit is contained in:
1 parent
fdf822f430
commit
a97627e736
7 files changed
+15
-37
No files matched your search
@@ -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