summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-11-11 20:58:45 -0500
committerGitHub <noreply@github.com>2025-11-11 20:58:45 -0500
commit8495e0166819919c3e1b9e162460d749720a0111 (patch)
tree20dd8732460ee668c1d740002e9d74a162794afd /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parentf63796c4804676f329f6c20bb376b16819933c37 (diff)
parenta97627e736ff352e031123519c799e65cc98b32c (diff)
Merge pull request #14096 from jordan-woyak/state-changed-hookable-event
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();
});