From 34fb14ec9a50e3d56ceba9ba8f9f65935bb87db7 Mon Sep 17 00:00:00 2001 From: Kelebek1 Date: Sat, 17 Feb 2024 15:59:09 +0000 Subject: Close reference to TimeZoneBinary on game close --- src/core/hle/service/glue/time/manager.cpp | 4 ++++ src/core/hle/service/glue/time/manager.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src/core/hle') diff --git a/src/core/hle/service/glue/time/manager.cpp b/src/core/hle/service/glue/time/manager.cpp index cad755fa7..059ac3fc9 100644 --- a/src/core/hle/service/glue/time/manager.cpp +++ b/src/core/hle/service/glue/time/manager.cpp @@ -186,6 +186,10 @@ TimeManager::TimeManager(Core::System& system) } } +TimeManager::~TimeManager() { + ResetTimeZoneBinary(); +} + Result TimeManager::SetupStandardSteadyClockCore() { Common::UUID external_clock_source_id{}; auto res = m_set_sys->GetExternalSteadyClockSourceId(&external_clock_source_id); diff --git a/src/core/hle/service/glue/time/manager.h b/src/core/hle/service/glue/time/manager.h index 1de93f8f9..bb4b65049 100644 --- a/src/core/hle/service/glue/time/manager.h +++ b/src/core/hle/service/glue/time/manager.h @@ -26,6 +26,7 @@ namespace Service::Glue::Time { class TimeManager { public: explicit TimeManager(Core::System& system); + ~TimeManager(); std::shared_ptr m_set_sys; -- cgit v1.2.3