summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-11-09 16:34:50 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2025-11-09 16:43:19 -0600
commita97627e736ff352e031123519c799e65cc98b32c (patch)
treed66944bea695ee4485897d10f68ba303f3977548 /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parentfdf822f4305ae7cc5aef655fe484c903b8fb05b1 (diff)
Core: Make AddOnStateChangedCallback use HookableEvent.
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 669daabec0..2a7d7c8113 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -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();
});