diff options
author | Liam <byteslice@airmail.cc> | 2024-02-25 04:49:38 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-25 04:49:38 +0100 |
commit | 0d6fd122312af71c4c0796ea7d8199bc2f58299c (patch) | |
tree | 566cb684c001a3cf53abed688813ecaf37a652d1 /src | |
parent | Merge pull request #13155 from german77/GetSettingsItemValue (diff) | |
download | yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.tar yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.tar.gz yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.tar.bz2 yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.tar.lz yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.tar.xz yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.tar.zst yuzu-0d6fd122312af71c4c0796ea7d8199bc2f58299c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/glue/time/manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/glue/time/manager.cpp b/src/core/hle/service/glue/time/manager.cpp index 059ac3fc9..cb88486dd 100644 --- a/src/core/hle/service/glue/time/manager.cpp +++ b/src/core/hle/service/glue/time/manager.cpp @@ -51,16 +51,17 @@ s64 CalendarTimeToEpoch(Service::PSC::Time::CalendarTime calendar) { } s64 GetEpochTimeFromInitialYear(std::shared_ptr<Service::Set::ISystemSettingsServer>& set_sys) { + s32 year{2000}; + set_sys->GetSettingsItemValueImpl(year, "time", "standard_user_clock_initial_year"); + Service::PSC::Time::CalendarTime calendar{ - .year = 2000, + .year = static_cast<s16>(year), .month = 1, .day = 1, .hour = 0, .minute = 0, .second = 0, }; - set_sys->GetSettingsItemValueImpl<s16>(calendar.year, "time", - "standard_user_clock_initial_year"); return CalendarTimeToEpoch(calendar); } |