summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/time/time.cpp7
-rw-r--r--src/core/hle/service/time/time.h1
-rw-r--r--src/core/hle/service/time/time_u.cpp1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index 364ddcea2..ad49f4265 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -146,6 +146,13 @@ void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) {
146 LOG_DEBUG(Service_Time, "called"); 146 LOG_DEBUG(Service_Time, "called");
147} 147}
148 148
149void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx) {
150 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
151 rb.Push(RESULT_SUCCESS);
152 rb.PushIpcInterface<ISystemClock>();
153 LOG_DEBUG(Service_Time, "called");
154}
155
149Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) 156Module::Interface::Interface(std::shared_ptr<Module> time, const char* name)
150 : ServiceFramework(name), time(std::move(time)) {} 157 : ServiceFramework(name), time(std::move(time)) {}
151 158
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h
index 1cbbadb21..197029e7a 100644
--- a/src/core/hle/service/time/time.h
+++ b/src/core/hle/service/time/time.h
@@ -56,6 +56,7 @@ public:
56 void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); 56 void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx);
57 void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); 57 void GetStandardSteadyClock(Kernel::HLERequestContext& ctx);
58 void GetTimeZoneService(Kernel::HLERequestContext& ctx); 58 void GetTimeZoneService(Kernel::HLERequestContext& ctx);
59 void GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx);
59 60
60 protected: 61 protected:
61 std::shared_ptr<Module> time; 62 std::shared_ptr<Module> time;
diff --git a/src/core/hle/service/time/time_u.cpp b/src/core/hle/service/time/time_u.cpp
index ae4f78adf..fc1ace325 100644
--- a/src/core/hle/service/time/time_u.cpp
+++ b/src/core/hle/service/time/time_u.cpp
@@ -13,6 +13,7 @@ TIME_U::TIME_U(std::shared_ptr<Module> time) : Module::Interface(std::move(time)
13 {1, &TIME_U::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"}, 13 {1, &TIME_U::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"},
14 {2, &TIME_U::GetStandardSteadyClock, "GetStandardSteadyClock"}, 14 {2, &TIME_U::GetStandardSteadyClock, "GetStandardSteadyClock"},
15 {3, &TIME_U::GetTimeZoneService, "GetTimeZoneService"}, 15 {3, &TIME_U::GetTimeZoneService, "GetTimeZoneService"},
16 {4, &TIME_U::GetStandardLocalSystemClock, "GetStandardLocalSystemClock"},
16 }; 17 };
17 RegisterHandlers(functions); 18 RegisterHandlers(functions);
18} 19}