aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ns/query_service.cpp
diff options
context:
space:
mode:
authorGamer64 <gamer64@eden-emu.dev>2025-10-08 02:08:13 +0200
committercrueter <crueter@eden-emu.dev>2025-10-08 02:08:13 +0200
commitacd7d792a34a809cf4e7f9270b3cee605fb6c35e (patch)
tree71c67b05d2a51c4f72cf19867f7c9c90a88ac6cf /src/core/hle/service/ns/query_service.cpp
parent9acb6006b8586303304102deb42b4f7dc462fe53 (diff)
[hle] Stubbed QueryLastPlayTime (#389)
Ported from Torzu, made by Jarrod Norwell. Co-authored-by: Jarrod Norwell <official.antique@gmail.com> Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/389 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: Gamer64 <gamer64@eden-emu.dev> Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
Diffstat (limited to 'src/core/hle/service/ns/query_service.cpp')
-rw-r--r--src/core/hle/service/ns/query_service.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/ns/query_service.cpp b/src/core/hle/service/ns/query_service.cpp
index 1384005415..a4632cb6c8 100644
--- a/src/core/hle/service/ns/query_service.cpp
+++ b/src/core/hle/service/ns/query_service.cpp
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@@ -29,7 +32,7 @@ IQueryService::IQueryService(Core::System& system_) : ServiceFramework{system_,
{14, nullptr, "QueryRecentlyPlayedApplication"},
{15, nullptr, "GetRecentlyPlayedApplicationUpdateEvent"},
{16, nullptr, "QueryApplicationPlayStatisticsByUserAccountIdForSystemV0"},
- {17, nullptr, "QueryLastPlayTime"},
+ {17, D<&IQueryService::QueryLastPlayTime>, "QueryLastPlayTime"},
{18, nullptr, "QueryApplicationPlayStatisticsForSystem"},
{19, nullptr, "QueryApplicationPlayStatisticsByUserAccountIdForSystem"},
};
@@ -53,4 +56,13 @@ Result IQueryService::QueryPlayStatisticsByApplicationIdAndUserAccountId(
R_SUCCEED();
}
+Result IQueryService::QueryLastPlayTime(
+ Out<s32> out_entries, u8 unknown,
+ OutArray<LastPlayTime, BufferAttr_HipcMapAlias> out_last_play_times,
+ InArray<s32, BufferAttr_HipcMapAlias> application_ids) {
+ *out_entries = 1;
+ *out_last_play_times = {};
+ R_SUCCEED();
+}
+
} // namespace Service::NS