From 1b3f61041ac3f7ad9157c4ffb34b4378799f1861 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Jan 2024 14:42:09 -0500 Subject: [PATCH] Movie: Remove global system accessor from GetRTCDisplay() We can just use m_system instance reference instead. --- Source/Core/Core/Movie.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 140a0cdf82..1bdf8c56d6 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -165,8 +165,7 @@ std::string MovieManager::GetRTCDisplay() const { using ExpansionInterface::CEXIIPL; - const time_t current_time = - CEXIIPL::GetEmulatedTime(Core::System::GetInstance(), CEXIIPL::UNIX_EPOCH); + const time_t current_time = CEXIIPL::GetEmulatedTime(m_system, CEXIIPL::UNIX_EPOCH); const tm gm_time = fmt::gmtime(current_time); // Use current locale for formatting time, as fmt is locale-agnostic by default.