summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-10 20:02:27 +0200
committerZach Hilman <zachhilman@gmail.com>2019-07-08 03:38:33 +0200
commit71bc2182c2e27c7dc635bd527325ebcde1f76ed0 (patch)
tree237af6fe3aec5d0ad7b1299b0b50a847186937e7
parentes: Implement ETicket GetTitleKey (8) (diff)
downloadyuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.tar
yuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.tar.gz
yuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.tar.bz2
yuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.tar.lz
yuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.tar.xz
yuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.tar.zst
yuzu-71bc2182c2e27c7dc635bd527325ebcde1f76ed0.zip
-rw-r--r--src/core/hle/service/es/es.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/es/es.cpp b/src/core/hle/service/es/es.cpp
index 65dfaa2a0..1c6aef029 100644
--- a/src/core/hle/service/es/es.cpp
+++ b/src/core/hle/service/es/es.cpp
@@ -24,7 +24,7 @@ public:
{6, nullptr, "DeleteAllPersonalizedTicket"},
{7, nullptr, "DeleteAllPersonalizedTicketEx"},
{8, &ETicket::GetTitleKey, "GetTitleKey"},
- {9, nullptr, "CountCommonTicket"},
+ {9, &ETicket::CountCommonTicket, "CountCommonTicket"},
{10, nullptr, "CountPersonalizedTicket"},
{11, nullptr, "ListCommonTicket"},
{12, nullptr, "ListPersonalizedTicket"},
@@ -122,6 +122,17 @@ private:
rb.Push(RESULT_SUCCESS);
}
+ void CountCommonTicket(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_ETicket, "called");
+
+ keys.PopulateTickets();
+ const auto count = keys.GetCommonTickets().size();
+
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push<u32>(count);
+ }
+
};
void InstallInterfaces(SM::ServiceManager& service_manager) {