From 818672b5856ed0ba36af27343f4dbf31544bc1a4 Mon Sep 17 00:00:00 2001 From: Filoppi Date: Thu, 31 Dec 2020 14:03:20 +0200 Subject: 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. --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp') 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(); }); -- cgit v1.2.3