diff options
| author | 2019-11-12 08:54:58 -0500 | |
|---|---|---|
| committer | 2019-11-12 10:32:56 -0500 | |
| commit | e21b6ff79ddf7109db6f49e503e2c2e59fe466c7 (patch) | |
| tree | 1c9437b9426af14d3af0566be6d385aea85d16a9 /src/core/hle/service/time | |
| parent | Merge pull request #3085 from bunnei/web-token-b64 (diff) | |
| download | yuzu-e21b6ff79ddf7109db6f49e503e2c2e59fe466c7.tar.gz yuzu-e21b6ff79ddf7109db6f49e503e2c2e59fe466c7.tar.xz yuzu-e21b6ff79ddf7109db6f49e503e2c2e59fe466c7.zip | |
service: Update function tables
Keeps the function tables up to date.
Updated based off information from Switchbrew.
Diffstat (limited to 'src/core/hle/service/time')
| -rw-r--r-- | src/core/hle/service/time/interface.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/core/hle/service/time/interface.cpp b/src/core/hle/service/time/interface.cpp index 9565e7de5..bc74f1e1d 100644 --- a/src/core/hle/service/time/interface.cpp +++ b/src/core/hle/service/time/interface.cpp | |||
| @@ -21,6 +21,7 @@ Time::Time(std::shared_ptr<Module> time, std::shared_ptr<SharedMemory> shared_me | |||
| 21 | {30, nullptr, "GetStandardNetworkClockOperationEventReadableHandle"}, | 21 | {30, nullptr, "GetStandardNetworkClockOperationEventReadableHandle"}, |
| 22 | {31, nullptr, "GetEphemeralNetworkClockOperationEventReadableHandle"}, | 22 | {31, nullptr, "GetEphemeralNetworkClockOperationEventReadableHandle"}, |
| 23 | {50, nullptr, "SetStandardSteadyClockInternalOffset"}, | 23 | {50, nullptr, "SetStandardSteadyClockInternalOffset"}, |
| 24 | {51, nullptr, "GetStandardSteadyClockRtcValue"}, | ||
| 24 | {100, &Time::IsStandardUserSystemClockAutomaticCorrectionEnabled, "IsStandardUserSystemClockAutomaticCorrectionEnabled"}, | 25 | {100, &Time::IsStandardUserSystemClockAutomaticCorrectionEnabled, "IsStandardUserSystemClockAutomaticCorrectionEnabled"}, |
| 25 | {101, &Time::SetStandardUserSystemClockAutomaticCorrectionEnabled, "SetStandardUserSystemClockAutomaticCorrectionEnabled"}, | 26 | {101, &Time::SetStandardUserSystemClockAutomaticCorrectionEnabled, "SetStandardUserSystemClockAutomaticCorrectionEnabled"}, |
| 26 | {102, nullptr, "GetStandardUserSystemClockInitialYear"}, | 27 | {102, nullptr, "GetStandardUserSystemClockInitialYear"}, |
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 1b9ab8401..6b9f57e8f 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -74,15 +74,17 @@ public: | |||
| 74 | ISystemClock(std::shared_ptr<Service::Time::SharedMemory> shared_memory, | 74 | ISystemClock(std::shared_ptr<Service::Time::SharedMemory> shared_memory, |
| 75 | ClockContextType clock_type) | 75 | ClockContextType clock_type) |
| 76 | : ServiceFramework("ISystemClock"), shared_memory(shared_memory), clock_type(clock_type) { | 76 | : ServiceFramework("ISystemClock"), shared_memory(shared_memory), clock_type(clock_type) { |
| 77 | // clang-format off | ||
| 77 | static const FunctionInfo functions[] = { | 78 | static const FunctionInfo functions[] = { |
| 78 | {0, &ISystemClock::GetCurrentTime, "GetCurrentTime"}, | 79 | {0, &ISystemClock::GetCurrentTime, "GetCurrentTime"}, |
| 79 | {1, nullptr, "SetCurrentTime"}, | 80 | {1, nullptr, "SetCurrentTime"}, |
| 80 | {2, &ISystemClock::GetSystemClockContext, "GetSystemClockContext"}, | 81 | {2, &ISystemClock::GetSystemClockContext, "GetSystemClockContext"}, |
| 81 | {3, nullptr, "SetSystemClockContext"}, | 82 | {3, nullptr, "SetSystemClockContext"}, |
| 82 | 83 | {4, nullptr, "GetOperationEventReadableHandle"}, | |
| 83 | }; | 84 | }; |
| 84 | RegisterHandlers(functions); | 85 | // clang-format on |
| 85 | 86 | ||
| 87 | RegisterHandlers(functions); | ||
| 86 | UpdateSharedMemoryContext(system_clock_context); | 88 | UpdateSharedMemoryContext(system_clock_context); |
| 87 | } | 89 | } |
| 88 | 90 | ||
| @@ -162,6 +164,7 @@ private: | |||
| 162 | class ITimeZoneService final : public ServiceFramework<ITimeZoneService> { | 164 | class ITimeZoneService final : public ServiceFramework<ITimeZoneService> { |
| 163 | public: | 165 | public: |
| 164 | ITimeZoneService() : ServiceFramework("ITimeZoneService") { | 166 | ITimeZoneService() : ServiceFramework("ITimeZoneService") { |
| 167 | // clang-format off | ||
| 165 | static const FunctionInfo functions[] = { | 168 | static const FunctionInfo functions[] = { |
| 166 | {0, &ITimeZoneService::GetDeviceLocationName, "GetDeviceLocationName"}, | 169 | {0, &ITimeZoneService::GetDeviceLocationName, "GetDeviceLocationName"}, |
| 167 | {1, nullptr, "SetDeviceLocationName"}, | 170 | {1, nullptr, "SetDeviceLocationName"}, |
| @@ -169,11 +172,17 @@ public: | |||
| 169 | {3, nullptr, "LoadLocationNameList"}, | 172 | {3, nullptr, "LoadLocationNameList"}, |
| 170 | {4, &ITimeZoneService::LoadTimeZoneRule, "LoadTimeZoneRule"}, | 173 | {4, &ITimeZoneService::LoadTimeZoneRule, "LoadTimeZoneRule"}, |
| 171 | {5, nullptr, "GetTimeZoneRuleVersion"}, | 174 | {5, nullptr, "GetTimeZoneRuleVersion"}, |
| 175 | {6, nullptr, "GetDeviceLocationNameAndUpdatedTime"}, | ||
| 176 | {7, nullptr, "SetDeviceLocationNameWithTimeZoneRule"}, | ||
| 177 | {8, nullptr, "ParseTimeZoneBinary"}, | ||
| 178 | {20, nullptr, "GetDeviceLocationNameOperationEventReadableHandle"}, | ||
| 172 | {100, &ITimeZoneService::ToCalendarTime, "ToCalendarTime"}, | 179 | {100, &ITimeZoneService::ToCalendarTime, "ToCalendarTime"}, |
| 173 | {101, &ITimeZoneService::ToCalendarTimeWithMyRule, "ToCalendarTimeWithMyRule"}, | 180 | {101, &ITimeZoneService::ToCalendarTimeWithMyRule, "ToCalendarTimeWithMyRule"}, |
| 174 | {201, &ITimeZoneService::ToPosixTime, "ToPosixTime"}, | 181 | {201, &ITimeZoneService::ToPosixTime, "ToPosixTime"}, |
| 175 | {202, &ITimeZoneService::ToPosixTimeWithMyRule, "ToPosixTimeWithMyRule"}, | 182 | {202, &ITimeZoneService::ToPosixTimeWithMyRule, "ToPosixTimeWithMyRule"}, |
| 176 | }; | 183 | }; |
| 184 | // clang-format on | ||
| 185 | |||
| 177 | RegisterHandlers(functions); | 186 | RegisterHandlers(functions); |
| 178 | } | 187 | } |
| 179 | 188 | ||