Core: Make AddOnStateChangedCallback use HookableEvent.

This commit is contained in:
Jordan Woyak
2025-11-09 16:34:50 -06:00
parent fdf822f430
commit a97627e736
7 changed files with 15 additions and 37 deletions

View File

@@ -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();
});