|
|
@ -140,11 +140,12 @@ void ITimeZoneService::ToPosixTime(Kernel::HLERequestContext& ctx) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ctx.WriteBuffer(posix_time); |
|
|
|
|
|
|
|
|
// TODO(bunnei): Handle multiple times
|
|
|
// TODO(bunnei): Handle multiple times
|
|
|
IPC::ResponseBuilder rb{ctx, 3}; |
|
|
IPC::ResponseBuilder rb{ctx, 3}; |
|
|
rb.Push(RESULT_SUCCESS); |
|
|
rb.Push(RESULT_SUCCESS); |
|
|
rb.PushRaw<u32>(1); // Number of times we're returning
|
|
|
rb.PushRaw<u32>(1); // Number of times we're returning
|
|
|
ctx.WriteBuffer(posix_time); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ITimeZoneService::ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx) { |
|
|
void ITimeZoneService::ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx) { |
|
|
@ -163,10 +164,11 @@ void ITimeZoneService::ToPosixTimeWithMyRule(Kernel::HLERequestContext& ctx) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ctx.WriteBuffer(posix_time); |
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 3}; |
|
|
IPC::ResponseBuilder rb{ctx, 3}; |
|
|
rb.Push(RESULT_SUCCESS); |
|
|
rb.Push(RESULT_SUCCESS); |
|
|
rb.PushRaw<u32>(1); // Number of times we're returning
|
|
|
rb.PushRaw<u32>(1); // Number of times we're returning
|
|
|
ctx.WriteBuffer(posix_time); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} // namespace Service::Time
|
|
|
} // namespace Service::Time
|