summaryrefslogtreecommitdiff
path: root/src/core/hle/service/glue
diff options
context:
space:
mode:
authorGravatar Kelebek12024-01-30 19:08:47 +0000
committerGravatar Kelebek12024-01-31 01:41:59 +0000
commit9ed82a280e8f22dbd119b4b7becd3582b50f3ffa (patch)
tree723a135615c95aeee9a775742466eab86f54ce82 /src/core/hle/service/glue
parentMerge pull request #12856 from liamwhite/serialization (diff)
downloadyuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.gz
yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.tar.xz
yuzu-9ed82a280e8f22dbd119b4b7becd3582b50f3ffa.zip
Remove a few hacks for clock setups, which seem to no longer be needed, but fix network clock to local clock on every boot. Also fix some logging strings.
Diffstat (limited to 'src/core/hle/service/glue')
-rw-r--r--src/core/hle/service/glue/time/time_zone.cpp27
-rw-r--r--src/core/hle/service/glue/time/time_zone.h6
2 files changed, 13 insertions, 20 deletions
diff --git a/src/core/hle/service/glue/time/time_zone.cpp b/src/core/hle/service/glue/time/time_zone.cpp
index 5dc1187cb..98d928697 100644
--- a/src/core/hle/service/glue/time/time_zone.cpp
+++ b/src/core/hle/service/glue/time/time_zone.cpp
@@ -197,32 +197,27 @@ Result TimeZoneService::ToCalendarTimeWithMyRule(
197 197
198Result TimeZoneService::ToPosixTime(Out<u32> out_count, 198Result TimeZoneService::ToPosixTime(Out<u32> out_count,
199 OutArray<s64, BufferAttr_HipcPointer> out_times, 199 OutArray<s64, BufferAttr_HipcPointer> out_times,
200 Out<u32> out_times_count, 200 const Service::PSC::Time::CalendarTime& calendar_time,
201 Service::PSC::Time::CalendarTime& calendar_time, InRule rule) { 201 InRule rule) {
202 SCOPE_EXIT({ 202 SCOPE_EXIT({
203 LOG_DEBUG(Service_Time, 203 LOG_DEBUG(Service_Time,
204 "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={} " 204 "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={}",
205 "out_times_count={}", 205 calendar_time, *out_count, out_times[0], out_times[1]);
206 calendar_time, *out_count, out_times[0], out_times[1], *out_times_count);
207 }); 206 });
208 207
209 R_RETURN( 208 R_RETURN(m_wrapped_service->ToPosixTime(out_count, out_times, calendar_time, rule));
210 m_wrapped_service->ToPosixTime(out_count, out_times, out_times_count, calendar_time, rule));
211} 209}
212 210
213Result TimeZoneService::ToPosixTimeWithMyRule(Out<u32> out_count, 211Result TimeZoneService::ToPosixTimeWithMyRule(
214 OutArray<s64, BufferAttr_HipcPointer> out_times, 212 Out<u32> out_count, OutArray<s64, BufferAttr_HipcPointer> out_times,
215 Out<u32> out_times_count, 213 const Service::PSC::Time::CalendarTime& calendar_time) {
216 Service::PSC::Time::CalendarTime& calendar_time) {
217 SCOPE_EXIT({ 214 SCOPE_EXIT({
218 LOG_DEBUG(Service_Time, 215 LOG_DEBUG(Service_Time,
219 "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={} " 216 "called. calendar_time={} out_count={} out_times[0]={} out_times[1]={}",
220 "out_times_count={}", 217 calendar_time, *out_count, out_times[0], out_times[1]);
221 calendar_time, *out_count, out_times[0], out_times[1], *out_times_count);
222 }); 218 });
223 219
224 R_RETURN(m_wrapped_service->ToPosixTimeWithMyRule(out_count, out_times, out_times_count, 220 R_RETURN(m_wrapped_service->ToPosixTimeWithMyRule(out_count, out_times, calendar_time));
225 calendar_time));
226} 221}
227 222
228} // namespace Service::Glue::Time 223} // namespace Service::Glue::Time
diff --git a/src/core/hle/service/glue/time/time_zone.h b/src/core/hle/service/glue/time/time_zone.h
index bf12adbdc..9c1530966 100644
--- a/src/core/hle/service/glue/time/time_zone.h
+++ b/src/core/hle/service/glue/time/time_zone.h
@@ -68,12 +68,10 @@ public:
68 Out<Service::PSC::Time::CalendarTime> out_calendar_time, 68 Out<Service::PSC::Time::CalendarTime> out_calendar_time,
69 Out<Service::PSC::Time::CalendarAdditionalInfo> out_additional_info, s64 time); 69 Out<Service::PSC::Time::CalendarAdditionalInfo> out_additional_info, s64 time);
70 Result ToPosixTime(Out<u32> out_count, OutArray<s64, BufferAttr_HipcPointer> out_times, 70 Result ToPosixTime(Out<u32> out_count, OutArray<s64, BufferAttr_HipcPointer> out_times,
71 Out<u32> out_times_count, Service::PSC::Time::CalendarTime& calendar_time, 71 const Service::PSC::Time::CalendarTime& calendar_time, InRule rule);
72 InRule rule);
73 Result ToPosixTimeWithMyRule(Out<u32> out_count, 72 Result ToPosixTimeWithMyRule(Out<u32> out_count,
74 OutArray<s64, BufferAttr_HipcPointer> out_times, 73 OutArray<s64, BufferAttr_HipcPointer> out_times,
75 Out<u32> out_times_count, 74 const Service::PSC::Time::CalendarTime& calendar_time);
76 Service::PSC::Time::CalendarTime& calendar_time);
77 75
78private: 76private:
79 Core::System& m_system; 77 Core::System& m_system;