From 4f78f5c0df0a106cab891c7f7229563e7f5a69e1 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 10 Nov 2018 01:25:56 +1100 Subject: Implement GetClockSnapshot Needed by megaman 11 --- src/core/hle/service/time/time.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/core/hle/service/time/time.h') diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h index 5659ecad3..ca30ec60f 100644 --- a/src/core/hle/service/time/time.h +++ b/src/core/hle/service/time/time.h @@ -53,6 +53,23 @@ struct SystemClockContext { static_assert(sizeof(SystemClockContext) == 0x20, "SystemClockContext structure has incorrect size"); +struct ClockSnapshot { + SystemClockContext user_clock_context; + SystemClockContext network_clock_context; + s64_le system_posix_time; + s64_le network_posix_time; + CalendarTime system_calendar_time; + CalendarTime network_calendar_time; + CalendarAdditionalInfo system_calendar_info; + CalendarAdditionalInfo network_calendar_info; + SteadyClockTimePoint steady_clock_timepoint; + LocationName location_name; + u8 clock_auto_adjustment_enabled; + u8 ipc_u8; + INSERT_PADDING_BYTES(2); +}; +static_assert(sizeof(ClockSnapshot) == 0xd0, "ClockSnapshot is an invalid size"); + class Module final { public: class Interface : public ServiceFramework { @@ -65,6 +82,7 @@ public: void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); void GetTimeZoneService(Kernel::HLERequestContext& ctx); void GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx); + void GetClockSnapshot(Kernel::HLERequestContext& ctx); protected: std::shared_ptr time; -- cgit v1.2.3 From 48cd61d9c865aa0d93789cf05b647b272bccab4e Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 10 Nov 2018 18:07:34 +1100 Subject: Added maybe_unused --- src/core/hle/service/time/time.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/hle/service/time/time.h') diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h index ca30ec60f..77871ae07 100644 --- a/src/core/hle/service/time/time.h +++ b/src/core/hle/service/time/time.h @@ -5,6 +5,7 @@ #pragma once #include +#include "common/common_funcs.h" #include "core/hle/service/service.h" namespace Service::Time { -- cgit v1.2.3