summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/time/time.cpp14
-rw-r--r--src/core/hle/service/time/time.h2
2 files changed, 12 insertions, 4 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index a48d7b304..9fed89246 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -45,6 +45,7 @@ public:
45 ITimeZoneService() : ServiceFramework("ITimeZoneService") { 45 ITimeZoneService() : ServiceFramework("ITimeZoneService") {
46 static const FunctionInfo functions[] = { 46 static const FunctionInfo functions[] = {
47 {0, &ITimeZoneService::GetDeviceLocationName, "GetDeviceLocationName"}, 47 {0, &ITimeZoneService::GetDeviceLocationName, "GetDeviceLocationName"},
48 {2, &ITimeZoneService::GetTotalLocationNameCount, "GetTotalLocationNameCount"},
48 {101, &ITimeZoneService::ToCalendarTimeWithMyRule, "ToCalendarTimeWithMyRule"}, 49 {101, &ITimeZoneService::ToCalendarTimeWithMyRule, "ToCalendarTimeWithMyRule"},
49 }; 50 };
50 RegisterHandlers(functions); 51 RegisterHandlers(functions);
@@ -53,10 +54,17 @@ public:
53private: 54private:
54 void GetDeviceLocationName(Kernel::HLERequestContext& ctx) { 55 void GetDeviceLocationName(Kernel::HLERequestContext& ctx) {
55 LOG_WARNING(Service, "(STUBBED) called"); 56 LOG_WARNING(Service, "(STUBBED) called");
56 LocationName name{}; 57 LocationName location_name{};
57 IPC::RequestBuilder rb{ctx, 11}; 58 IPC::RequestBuilder rb{ctx, (sizeof(LocationName) / 4) + 2};
58 rb.Push(RESULT_SUCCESS); 59 rb.Push(RESULT_SUCCESS);
59 rb.PushRaw(name); 60 rb.PushRaw(location_name);
61 }
62
63 void GetTotalLocationNameCount(Kernel::HLERequestContext& ctx) {
64 LOG_WARNING(Service, "(STUBBED) called");
65 IPC::RequestBuilder rb{ctx, 3};
66 rb.Push(RESULT_SUCCESS);
67 rb.Push<u32>(0);
60 } 68 }
61 69
62 void ToCalendarTimeWithMyRule(Kernel::HLERequestContext& ctx) { 70 void ToCalendarTimeWithMyRule(Kernel::HLERequestContext& ctx) {
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h
index 2aa424dbb..399f474d6 100644
--- a/src/core/hle/service/time/time.h
+++ b/src/core/hle/service/time/time.h
@@ -13,7 +13,7 @@ namespace Time {
13struct LocationName { 13struct LocationName {
14 INSERT_PADDING_BYTES(0x24); 14 INSERT_PADDING_BYTES(0x24);
15}; 15};
16static_assert(sizeof(LocationName) == 0x24, "LocationName structure has incorrect size"); 16static_assert(sizeof(LocationName) == 0x24, "LocationName is incorrect size");
17 17
18struct CalendarTime { 18struct CalendarTime {
19 u16_le year; 19 u16_le year;