Core: Make AddOnStateChangedCallback use HookableEvent.

This commit is contained in:
Jordan Woyak committed 2025-11-09 16:43:19 -06:00
1 parent fdf822f430
commit a97627e736
7 files changed
+15 -37

No files matched your search

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