mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 01:44:03 +00:00
"Merge Tagged PR 13160"
This commit is contained in:
parent
a93d249ac1
commit
4ab9a8abe1
1 changed files with 4 additions and 3 deletions
|
@ -51,16 +51,17 @@ s64 CalendarTimeToEpoch(Service::PSC::Time::CalendarTime calendar) {
|
||||||
}
|
}
|
||||||
|
|
||||||
s64 GetEpochTimeFromInitialYear(std::shared_ptr<Service::Set::ISystemSettingsServer>& set_sys) {
|
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{
|
Service::PSC::Time::CalendarTime calendar{
|
||||||
.year = 2000,
|
.year = static_cast<s16>(year),
|
||||||
.month = 1,
|
.month = 1,
|
||||||
.day = 1,
|
.day = 1,
|
||||||
.hour = 0,
|
.hour = 0,
|
||||||
.minute = 0,
|
.minute = 0,
|
||||||
.second = 0,
|
.second = 0,
|
||||||
};
|
};
|
||||||
set_sys->GetSettingsItemValueImpl<s16>(calendar.year, "time",
|
|
||||||
"standard_user_clock_initial_year");
|
|
||||||
return CalendarTimeToEpoch(calendar);
|
return CalendarTimeToEpoch(calendar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue