summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-24 04:02:14 +0100
committerbunnei <bunneidev@gmail.com>2018-01-25 04:24:18 +0100
commitf0b6baf3adde14f9ccfc4660a6eaa412a81d644d (patch)
tree303f1a73d07c3627902f9d6bc172a4028ffeefaf /src/core/hle/service/time/time.cpp
parentserver_session: Fix scenario where all domain handlers are closed. (diff)
downloadyuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.tar
yuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.tar.gz
yuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.tar.bz2
yuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.tar.lz
yuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.tar.xz
yuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.tar.zst
yuzu-f0b6baf3adde14f9ccfc4660a6eaa412a81d644d.zip
Diffstat (limited to 'src/core/hle/service/time/time.cpp')
-rw-r--r--src/core/hle/service/time/time.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index d6f3ae043..96ccee50d 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -19,7 +19,7 @@ public:
ISystemClock() : ServiceFramework("ISystemClock") {
static const FunctionInfo functions[] = {
{0, &ISystemClock::GetCurrentTime, "GetCurrentTime"},
- };
+ {2, &ISystemClock::GetSystemClockContext, "GetSystemClockContext"}};
RegisterHandlers(functions);
}
@@ -28,10 +28,18 @@ private:
const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::system_clock::now().time_since_epoch())
.count()};
+ LOG_DEBUG(Service, "called");
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
rb.Push<u64>(time_since_epoch);
- LOG_DEBUG(Service, "called");
+ }
+
+ void GetSystemClockContext(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service, "(STUBBED) called");
+ SystemClockContext system_clock_ontext{};
+ IPC::ResponseBuilder rb{ctx, (sizeof(SystemClockContext) / 4) + 2};
+ rb.Push(RESULT_SUCCESS);
+ rb.PushRaw(system_clock_ontext);
}
};