summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2024-01-15 15:12:00 -0500
committerGitHub <noreply@github.com>2024-01-15 15:12:00 -0500
commite3d39fcc0d3ad19c4fe122483dd4ba2e3141a4ed (patch)
tree30c854ca14e32320334914d6c48e4f99e0a17233 /Source/Core/VideoCommon/VideoConfig.cpp
parentc76dee7807c331582cfb36376329e760eab3f704 (diff)
parent95cba6be2beda7fbf4fb597b0aa4cbb8912d8265 (diff)
Merge pull request #12502 from AdmiralCurtiss/globals-movie
Core/Movie: Refactor to class, move to System.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp5
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);
}