summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorFiloppi <filippotarpini@hotmail.it>2020-12-31 14:03:20 +0200
committerFiloppi <filippotarpini@hotmail.it>2021-05-06 01:10:04 +0300
commit818672b5856ed0ba36af27343f4dbf31544bc1a4 (patch)
treedaff6cc4b8828cb8e7f0e63f78b5f72008acf92e /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent31780a6059366112283fbbc894d9123b1fb2281e (diff)
Fix FPS counter and Game Window speed % breaking on pause/unpause
-Add pause state to FPSCounter. -Add ability to have more than one "OnStateChanged" callback in core. -Add GetActualEmulationSpeed() to Core. Returns 1 by default. It's used by my input PRs.
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 0bf4df23b8..eaef16c444 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -216,7 +216,7 @@ int main(int argc, char* argv[])
return 1;
}
- Core::SetOnStateChangedCallback([](Core::State state) {
+ Core::AddOnStateChangedCallback([](Core::State state) {
if (state == Core::State::Uninitialized)
s_platform->Stop();
});