summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-18 06:57:11 +0100
committerbunnei <bunneidev@gmail.com>2018-01-19 06:32:52 +0100
commite27accc15dff2a4b0d893be8f098d6a6a36cdad3 (patch)
treece71afc6240e6606dfc64958c20d1a2a1e43c4b0 /src/core/hle/service/time/time.cpp
parentMerge pull request #108 from gdkchan/dispdrv (diff)
downloadyuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.tar
yuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.tar.gz
yuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.tar.bz2
yuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.tar.lz
yuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.tar.xz
yuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.tar.zst
yuzu-e27accc15dff2a4b0d893be8f098d6a6a36cdad3.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/time/time.cpp14
1 files changed, 11 insertions, 3 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:
ITimeZoneService() : ServiceFramework("ITimeZoneService") {
static const FunctionInfo functions[] = {
{0, &ITimeZoneService::GetDeviceLocationName, "GetDeviceLocationName"},
+ {2, &ITimeZoneService::GetTotalLocationNameCount, "GetTotalLocationNameCount"},
{101, &ITimeZoneService::ToCalendarTimeWithMyRule, "ToCalendarTimeWithMyRule"},
};
RegisterHandlers(functions);
@@ -53,10 +54,17 @@ public:
private:
void GetDeviceLocationName(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
- LocationName name{};
- IPC::RequestBuilder rb{ctx, 11};
+ LocationName location_name{};
+ IPC::RequestBuilder rb{ctx, (sizeof(LocationName) / 4) + 2};
rb.Push(RESULT_SUCCESS);
- rb.PushRaw(name);
+ rb.PushRaw(location_name);
+ }
+
+ void GetTotalLocationNameCount(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service, "(STUBBED) called");
+ IPC::RequestBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push<u32>(0);
}
void ToCalendarTimeWithMyRule(Kernel::HLERequestContext& ctx) {