diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-13 13:14:48 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-15 08:05:30 +0100 |
| commit | 95cba6be2beda7fbf4fb597b0aa4cbb8912d8265 (patch) | |
| tree | 30c854ca14e32320334914d6c48e4f99e0a17233 /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | c76dee7807c331582cfb36376329e760eab3f704 (diff) | |
Core/Movie: Refactor to class, move to System.
A bit of global state remains (the `header` in `BeginRecordingInput()`) due to unclear lifetime requirements.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index daba4be9e1..51ab90fb7e 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -47,8 +47,9 @@ static bool IsVSyncActive(bool enabled) void UpdateActiveConfig() { - if (Movie::IsPlayingInput() && Movie::IsConfigSaved()) - Movie::SetGraphicsConfig(); + auto& movie = Core::System::GetInstance().GetMovie(); + if (movie.IsPlayingInput() && movie.IsConfigSaved()) + movie.SetGraphicsConfig(); g_ActiveConfig = g_Config; g_ActiveConfig.bVSyncActive = IsVSyncActive(g_ActiveConfig.bVSync); } |
