From 95cba6be2beda7fbf4fb597b0aa4cbb8912d8265 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 13 Jan 2024 13:14:48 +0100 Subject: Core/Movie: Refactor to class, move to System. A bit of global state remains (the `header` in `BeginRecordingInput()`) due to unclear lifetime requirements. --- Source/Core/VideoCommon/VideoConfig.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') 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); } -- cgit v1.2.3