summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time.h
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2018-05-31 14:33:30 +0200
committermailwl <mailwl@gmail.com>2018-06-01 08:40:28 +0200
commit11568c2ea36b712498fd0cedd03748331946030a (patch)
tree0a3767de73ca5cdc9fab6cf53711c58dd5e77de0 /src/core/hle/service/time/time.h
parentMerge pull request #488 from Subv/thread_masks (diff)
downloadyuzu-11568c2ea36b712498fd0cedd03748331946030a.tar
yuzu-11568c2ea36b712498fd0cedd03748331946030a.tar.gz
yuzu-11568c2ea36b712498fd0cedd03748331946030a.tar.bz2
yuzu-11568c2ea36b712498fd0cedd03748331946030a.tar.lz
yuzu-11568c2ea36b712498fd0cedd03748331946030a.tar.xz
yuzu-11568c2ea36b712498fd0cedd03748331946030a.tar.zst
yuzu-11568c2ea36b712498fd0cedd03748331946030a.zip
Diffstat (limited to 'src/core/hle/service/time/time.h')
-rw-r--r--src/core/hle/service/time/time.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h
index 12fe1995a..49af38589 100644
--- a/src/core/hle/service/time/time.h
+++ b/src/core/hle/service/time/time.h
@@ -4,13 +4,13 @@
#pragma once
+#include <array>
#include "core/hle/service/service.h"
namespace Service::Time {
-// TODO(Rozelette) RE this structure
struct LocationName {
- INSERT_PADDING_BYTES(0x24);
+ std::array<u8, 0x24> name;
};
static_assert(sizeof(LocationName) == 0x24, "LocationName is incorrect size");
@@ -25,26 +25,34 @@ struct CalendarTime {
};
static_assert(sizeof(CalendarTime) == 0x8, "CalendarTime structure has incorrect size");
-// TODO(Rozelette) RE this structure
struct CalendarAdditionalInfo {
- INSERT_PADDING_BYTES(0x18);
+ u32_le day_of_week;
+ u32_le day_of_year;
+ std::array<u8, 8> name;
+ INSERT_PADDING_BYTES(1);
+ s32_le utc_offset;
};
static_assert(sizeof(CalendarAdditionalInfo) == 0x18,
"CalendarAdditionalInfo structure has incorrect size");
-// TODO(bunnei) RE this structure
-struct SystemClockContext {
- INSERT_PADDING_BYTES(0x20);
+// TODO(mailwl) RE this structure
+struct TimeZoneRule {
+ INSERT_PADDING_BYTES(0x4000);
};
-static_assert(sizeof(SystemClockContext) == 0x20,
- "SystemClockContext structure has incorrect size");
struct SteadyClockTimePoint {
- u64 value;
+ u64_le value;
INSERT_PADDING_WORDS(4);
};
static_assert(sizeof(SteadyClockTimePoint) == 0x18, "SteadyClockTimePoint is incorrect size");
+struct SystemClockContext {
+ u64_le offset;
+ SteadyClockTimePoint time_point;
+};
+static_assert(sizeof(SystemClockContext) == 0x20,
+ "SystemClockContext structure has incorrect size");
+
class Module final {
public:
class Interface : public ServiceFramework<Interface> {