diff options
| author | Filoppi <filippotarpini@hotmail.it> | 2020-12-31 14:03:20 +0200 |
|---|---|---|
| committer | Filoppi <filippotarpini@hotmail.it> | 2021-05-06 01:10:04 +0300 |
| commit | 818672b5856ed0ba36af27343f4dbf31544bc1a4 (patch) | |
| tree | daff6cc4b8828cb8e7f0e63f78b5f72008acf92e /Source/Core/DolphinNoGUI/MainNoGUI.cpp | |
| parent | 31780a6059366112283fbbc894d9123b1fb2281e (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.cpp | 2 |
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(); }); |
