summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2018-07-26 00:51:59 +0200
committerGitHub <noreply@github.com>2018-07-26 00:51:59 +0200
commitd245610939219a3631a9a1850ffd8a504ce7d9d8 (patch)
tree1fd5498efd5e166f5575dc5b2cd8ddf3566ab100 /src/core/hle
parentMerge pull request #821 from lioncash/wait (diff)
parentservice: Add the es service (diff)
downloadyuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.tar
yuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.tar.gz
yuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.tar.bz2
yuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.tar.lz
yuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.tar.xz
yuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.tar.zst
yuzu-d245610939219a3631a9a1850ffd8a504ce7d9d8.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/es/es.cpp57
-rw-r--r--src/core/hle/service/es/es.h16
-rw-r--r--src/core/hle/service/service.cpp2
3 files changed, 75 insertions, 0 deletions
diff --git a/src/core/hle/service/es/es.cpp b/src/core/hle/service/es/es.cpp
new file mode 100644
index 000000000..d40f18565
--- /dev/null
+++ b/src/core/hle/service/es/es.cpp
@@ -0,0 +1,57 @@
+// Copyright 2018 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/service/service.h"
+
+namespace Service::ES {
+
+class ETicket final : public ServiceFramework<ETicket> {
+public:
+ explicit ETicket() : ServiceFramework{"es"} {
+ static const FunctionInfo functions[] = {
+ {1, nullptr, "ImportTicket"},
+ {2, nullptr, "ImportTicketCertificateSet"},
+ {3, nullptr, "DeleteTicket"},
+ {4, nullptr, "DeletePersonalizedTicket"},
+ {5, nullptr, "DeleteAllCommonTicket"},
+ {6, nullptr, "DeleteAllPersonalizedTicket"},
+ {7, nullptr, "DeleteAllPersonalizedTicketEx"},
+ {8, nullptr, "GetTitleKey"},
+ {9, nullptr, "CountCommonTicket"},
+ {10, nullptr, "CountPersonalizedTicket"},
+ {11, nullptr, "ListCommonTicket"},
+ {12, nullptr, "ListPersonalizedTicket"},
+ {13, nullptr, "ListMissingPersonalizedTicket"},
+ {14, nullptr, "GetCommonTicketSize"},
+ {15, nullptr, "GetPersonalizedTicketSize"},
+ {16, nullptr, "GetCommonTicketData"},
+ {17, nullptr, "GetPersonalizedTicketData"},
+ {18, nullptr, "OwnTicket"},
+ {19, nullptr, "GetTicketInfo"},
+ {20, nullptr, "ListLightTicketInfo"},
+ {21, nullptr, "SignData"},
+ {22, nullptr, "GetCommonTicketAndCertificateSize"},
+ {23, nullptr, "GetCommonTicketAndCertificateData"},
+ {24, nullptr, "ImportPrepurchaseRecord"},
+ {25, nullptr, "DeletePrepurchaseRecord"},
+ {26, nullptr, "DeleteAllPrepurchaseRecord"},
+ {27, nullptr, "CountPrepurchaseRecord"},
+ {28, nullptr, "ListPrepurchaseRecord"},
+ {29, nullptr, "ListPrepurchaseRecordInfo"},
+ {30, nullptr, "Unknown1"},
+ {31, nullptr, "Unknown2"},
+ {32, nullptr, "Unknown3"},
+ {33, nullptr, "Unknown4"},
+ {34, nullptr, "Unknown5"},
+ {35, nullptr, "Unknown6"},
+ };
+ RegisterHandlers(functions);
+ }
+};
+
+void InstallInterfaces(SM::ServiceManager& service_manager) {
+ std::make_shared<ETicket>()->InstallAsService(service_manager);
+}
+
+} // namespace Service::ES
diff --git a/src/core/hle/service/es/es.h b/src/core/hle/service/es/es.h
new file mode 100644
index 000000000..afe70465b
--- /dev/null
+++ b/src/core/hle/service/es/es.h
@@ -0,0 +1,16 @@
+// Copyright 2018 yuzu emulator team
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+namespace Service::SM {
+class ServiceManager;
+}
+
+namespace Service::ES {
+
+/// Registers all ES services with the specified service manager.
+void InstallInterfaces(SM::ServiceManager& service_manager);
+
+} // namespace Service::ES
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 0d036bfaa..b70d0d517 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -21,6 +21,7 @@
#include "core/hle/service/apm/apm.h"
#include "core/hle/service/audio/audio.h"
#include "core/hle/service/bcat/bcat.h"
+#include "core/hle/service/es/es.h"
#include "core/hle/service/fatal/fatal.h"
#include "core/hle/service/filesystem/filesystem.h"
#include "core/hle/service/friend/friend.h"
@@ -187,6 +188,7 @@ void Init(std::shared_ptr<SM::ServiceManager>& sm) {
APM::InstallInterfaces(*sm);
BCAT::InstallInterfaces(*sm);
Audio::InstallInterfaces(*sm);
+ ES::InstallInterfaces(*sm);
Fatal::InstallInterfaces(*sm);
FileSystem::InstallInterfaces(*sm);
Friend::InstallInterfaces(*sm);