diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2024-01-30 20:08:47 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2024-01-31 02:41:59 +0100 |
commit | 9ed82a280e8f22dbd119b4b7becd3582b50f3ffa (patch) | |
tree | 723a135615c95aeee9a775742466eab86f54ce82 /src/core/hle/service/psc/time/time_zone_service.cpp | |
parent | Merge pull request #12856 from liamwhite/serialization (diff) | |
download | yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.gz yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.bz2 yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.lz yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.xz yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.zst yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/psc/time/time_zone_service.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/core/hle/service/psc/time/time_zone_service.cpp b/src/core/hle/service/psc/time/time_zone_service.cpp index 9376a0324..eb81f5b03 100644 --- a/src/core/hle/service/psc/time/time_zone_service.cpp +++ b/src/core/hle/service/psc/time/time_zone_service.cpp @@ -138,32 +138,28 @@ Result TimeZoneService::ToCalendarTimeWithMyRule(Out<CalendarTime> out_calendar_ Result TimeZoneService::ToPosixTime(Out<u32> out_count, OutArray<s64, BufferAttr_HipcPointer> out_times, - Out<u32> out_times_count, CalendarTime& calendar_time, - InRule rule) { + const CalendarTime& calendar_time, InRule rule) { SCOPE_EXIT({ LOG_DEBUG(Service_Time, - "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={} " - "out_times_count={}", - calendar_time, *out_count, out_times[0], out_times[1], *out_times_count); + "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={} ", + calendar_time, *out_count, out_times[0], out_times[1]); }); R_RETURN( - m_time_zone.ToPosixTime(*out_count, out_times, *out_times_count, calendar_time, *rule)); + m_time_zone.ToPosixTime(*out_count, out_times, out_times.size(), calendar_time, *rule)); } Result TimeZoneService::ToPosixTimeWithMyRule(Out<u32> out_count, OutArray<s64, BufferAttr_HipcPointer> out_times, - Out<u32> out_times_count, - CalendarTime& calendar_time) { + const CalendarTime& calendar_time) { SCOPE_EXIT({ LOG_DEBUG(Service_Time, - "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={} " - "out_times_count={}", - calendar_time, *out_count, out_times[0], out_times[1], *out_times_count); + "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={} ", + calendar_time, *out_count, out_times[0], out_times[1]); }); R_RETURN( - m_time_zone.ToPosixTimeWithMyRule(*out_count, out_times, *out_times_count, calendar_time)); + m_time_zone.ToPosixTimeWithMyRule(*out_count, out_times, out_times.size(), calendar_time)); } } // namespace Service::PSC::Time |