diff options
| author | 2020-01-04 22:18:54 -0500 | |
|---|---|---|
| committer | 2020-01-04 22:18:54 -0500 | |
| commit | be5c149d374a7caaead4b7d1bfbd7ae4670fc229 (patch) | |
| tree | 2db19a342008c36df6199c1c9e9131ac09abeafb | |
| parent | time: Remove overflow error checking (currently breaks ADO builds). (diff) | |
| download | yuzu-be5c149d374a7caaead4b7d1bfbd7ae4670fc229.tar.gz yuzu-be5c149d374a7caaead4b7d1bfbd7ae4670fc229.tar.xz yuzu-be5c149d374a7caaead4b7d1bfbd7ae4670fc229.zip | |
service: time: Implement GetStandardLocalSystemClock.
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/time/interface.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 7 | ||||
| -rw-r--r-- | src/core/hle/service/time/time.h | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/time/interface.cpp b/src/core/hle/service/time/interface.cpp index 6423a6c37..1660bbdb8 100644 --- a/src/core/hle/service/time/interface.cpp +++ b/src/core/hle/service/time/interface.cpp | |||
| @@ -14,7 +14,7 @@ Time::Time(std::shared_ptr<Module> module, Core::System& system, const char* nam | |||
| 14 | {1, &Time::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, | 14 | {1, &Time::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, |
| 15 | {2, &Time::GetStandardSteadyClock, "GetStandardSteadyClock"}, | 15 | {2, &Time::GetStandardSteadyClock, "GetStandardSteadyClock"}, |
| 16 | {3, &Time::GetTimeZoneService, "GetTimeZoneService"}, | 16 | {3, &Time::GetTimeZoneService, "GetTimeZoneService"}, |
| 17 | {4, nullptr, "GetStandardLocalSystemClock"}, | 17 | {4, &Time::GetStandardLocalSystemClock, "GetStandardLocalSystemClock"}, |
| 18 | {5, nullptr, "GetEphemeralNetworkSystemClock"}, | 18 | {5, nullptr, "GetEphemeralNetworkSystemClock"}, |
| 19 | {20, &Time::GetSharedMemoryNativeHandle, "GetSharedMemoryNativeHandle"}, | 19 | {20, &Time::GetSharedMemoryNativeHandle, "GetSharedMemoryNativeHandle"}, |
| 20 | {30, nullptr, "GetStandardNetworkClockOperationEventReadableHandle"}, | 20 | {30, nullptr, "GetStandardNetworkClockOperationEventReadableHandle"}, |
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 6b1357813..8ef4efcef 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -199,6 +199,13 @@ void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { | |||
| 199 | rb.PushIpcInterface<ITimeZoneService>(module->GetTimeManager().GetTimeZoneContentManager()); | 199 | rb.PushIpcInterface<ITimeZoneService>(module->GetTimeManager().GetTimeZoneContentManager()); |
| 200 | } | 200 | } |
| 201 | 201 | ||
| 202 | void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx) { | ||
| 203 | LOG_DEBUG(Service_Time, "called"); | ||
| 204 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||
| 205 | rb.Push(RESULT_SUCCESS); | ||
| 206 | rb.PushIpcInterface<ISystemClock>(module->GetTimeManager().GetStandardLocalSystemClockCore()); | ||
| 207 | } | ||
| 208 | |||
| 202 | void Module::Interface::IsStandardNetworkSystemClockAccuracySufficient( | 209 | void Module::Interface::IsStandardNetworkSystemClockAccuracySufficient( |
| 203 | Kernel::HLERequestContext& ctx) { | 210 | Kernel::HLERequestContext& ctx) { |
| 204 | LOG_DEBUG(Service_Time, "called"); | 211 | LOG_DEBUG(Service_Time, "called"); |
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h index 2a216701c..aadc2df60 100644 --- a/src/core/hle/service/time/time.h +++ b/src/core/hle/service/time/time.h | |||
| @@ -27,6 +27,7 @@ public: | |||
| 27 | void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); | 27 | void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); |
| 28 | void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); | 28 | void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); |
| 29 | void GetTimeZoneService(Kernel::HLERequestContext& ctx); | 29 | void GetTimeZoneService(Kernel::HLERequestContext& ctx); |
| 30 | void GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx); | ||
| 30 | void IsStandardNetworkSystemClockAccuracySufficient(Kernel::HLERequestContext& ctx); | 31 | void IsStandardNetworkSystemClockAccuracySufficient(Kernel::HLERequestContext& ctx); |
| 31 | void CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERequestContext& ctx); | 32 | void CalculateMonotonicSystemClockBaseTimePoint(Kernel::HLERequestContext& ctx); |
| 32 | void GetClockSnapshot(Kernel::HLERequestContext& ctx); | 33 | void GetClockSnapshot(Kernel::HLERequestContext& ctx); |