diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-17 23:32:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 23:32:48 +0100 |
commit | e2f06dbc17ae392f7a7f64b681639a259a215124 (patch) | |
tree | b5fbc3c6415d51b15155713802412a34297336e7 /src/core/hle/service/time/time.h | |
parent | Implement Pull #3306 from citra: citra_qt: Drop Qt 5 version checks in code (#41) (diff) | |
parent | TIME: consolidate time:* interfaces, stub functions and structs (diff) | |
download | yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.tar yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.tar.gz yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.tar.bz2 yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.tar.lz yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.tar.xz yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.tar.zst yuzu-e2f06dbc17ae392f7a7f64b681639a259a215124.zip |
Diffstat (limited to 'src/core/hle/service/time/time.h')
-rw-r--r-- | src/core/hle/service/time/time.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h index 7d0803e24..5f332d057 100644 --- a/src/core/hle/service/time/time.h +++ b/src/core/hle/service/time/time.h @@ -9,6 +9,42 @@ namespace Service { namespace Time { +// TODO(Rozelette) RE this structure +struct LocationName { + INSERT_PADDING_BYTES(0x24); +}; +static_assert(sizeof(LocationName) == 0x24, "LocationName structure has incorrect size"); + +struct CalendarTime { + u16_le year; + u8 month; // Starts at 1 + u8 day; // Starts at 1 + u8 hour; + u8 minute; + u8 second; + INSERT_PADDING_BYTES(1); +}; +static_assert(sizeof(CalendarTime) == 0x8, "CalendarTime structure has incorrect size"); + +// TODO(Rozelette) RE this structure +struct CalendarAdditionalInfo { + INSERT_PADDING_BYTES(0x18); +}; +static_assert(sizeof(CalendarAdditionalInfo) == 0x18, + "CalendarAdditionalInfo structure has incorrect size"); + +class TIME final : public ServiceFramework<TIME> { +public: + explicit TIME(const char* name); + ~TIME() = default; + +private: + void GetStandardUserSystemClock(Kernel::HLERequestContext& ctx); + void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); + void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); + void GetTimeZoneService(Kernel::HLERequestContext& ctx); +}; + /// Registers all Time services with the specified service manager. void InstallInterfaces(SM::ServiceManager& service_manager); |