diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-07-14 17:37:03 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-05 21:15:11 +0200 |
commit | a40e0fdf9e287d962108731ebb515ee0fa4ee155 (patch) | |
tree | e28c860b01d818cd009c95939f5a87f2e35e3157 /src/core/hle/service/time/time_zone_manager.h | |
parent | time_zone_manager: Implement go_ahead/go_back (diff) | |
download | yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.tar yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.tar.gz yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.tar.bz2 yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.tar.lz yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.tar.xz yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.tar.zst yuzu-a40e0fdf9e287d962108731ebb515ee0fa4ee155.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/time/time_zone_manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/time/time_zone_manager.h b/src/core/hle/service/time/time_zone_manager.h index 5ebd4035e..8664f28d1 100644 --- a/src/core/hle/service/time/time_zone_manager.h +++ b/src/core/hle/service/time/time_zone_manager.h @@ -21,6 +21,10 @@ public: total_location_name_count = value; } + void SetLocationNames(std::vector<std::string> location_names) { + total_location_names = location_names; + } + void SetTimeZoneRuleVersion(const u128& value) { time_zone_rule_version = value; } @@ -33,6 +37,9 @@ public: FileSys::VirtualFile& vfs_file); Result SetUpdatedTime(const Clock::SteadyClockTimePoint& value); Result GetDeviceLocationName(TimeZone::LocationName& value) const; + Result GetTotalLocationNameCount(s32& count) const; + Result GetTimeZoneRuleVersion(u128& version) const; + Result LoadLocationNameList(std::vector<TimeZone::LocationName>& values) const; Result ToCalendarTime(const TimeZoneRule& rules, s64 time, CalendarInfo& calendar) const; Result ToCalendarTimeWithMyRules(s64 time, CalendarInfo& calendar) const; Result ParseTimeZoneRuleBinary(TimeZoneRule& rules, FileSys::VirtualFile& vfs_file) const; @@ -46,6 +53,7 @@ private: std::string device_location_name{"GMT"}; u128 time_zone_rule_version{}; std::size_t total_location_name_count{}; + std::vector<std::string> total_location_names{}; Clock::SteadyClockTimePoint time_zone_update_time_point{ Clock::SteadyClockTimePoint::GetRandom()}; }; |