summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2016-12-08 05:32:38 -0500
committerGravatar Lioncash2016-12-08 06:14:55 -0500
commit007815647cfaed90d61e12fce50de0df98e2a8ba (patch)
tree0c1a95c674f6e7d1cb472cb9521e0910d602be01 /src
parentservice: Add common ptm:u commands to other ptm services (diff)
downloadyuzu-007815647cfaed90d61e12fce50de0df98e2a8ba.tar.gz
yuzu-007815647cfaed90d61e12fce50de0df98e2a8ba.tar.xz
yuzu-007815647cfaed90d61e12fce50de0df98e2a8ba.zip
service: Add the ptm:s service
3dbrew documents this as being the exact same as ptm:sysm
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/ptm/ptm.cpp1
-rw-r--r--src/core/hle/service/ptm/ptm_sysm.cpp4
-rw-r--r--src/core/hle/service/ptm/ptm_sysm.h9
3 files changed, 14 insertions, 0 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index da7d56ced..4d374ba17 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -110,6 +110,7 @@ void CheckNew3DS(Service::Interface* self) {
110void Init() { 110void Init() {
111 AddService(new PTM_Gets); 111 AddService(new PTM_Gets);
112 AddService(new PTM_Play); 112 AddService(new PTM_Play);
113 AddService(new PTM_S);
113 AddService(new PTM_Sets); 114 AddService(new PTM_Sets);
114 AddService(new PTM_Sysm); 115 AddService(new PTM_Sysm);
115 AddService(new PTM_U); 116 AddService(new PTM_U);
diff --git a/src/core/hle/service/ptm/ptm_sysm.cpp b/src/core/hle/service/ptm/ptm_sysm.cpp
index a5db93e44..f95dfdbb1 100644
--- a/src/core/hle/service/ptm/ptm_sysm.cpp
+++ b/src/core/hle/service/ptm/ptm_sysm.cpp
@@ -59,6 +59,10 @@ const Interface::FunctionInfo FunctionTable[] = {
59 {0x08180040, nullptr, "ConfigureNew3DSCPU"}, 59 {0x08180040, nullptr, "ConfigureNew3DSCPU"},
60}; 60};
61 61
62PTM_S::PTM_S() {
63 Register(FunctionTable);
64}
65
62PTM_Sysm::PTM_Sysm() { 66PTM_Sysm::PTM_Sysm() {
63 Register(FunctionTable); 67 Register(FunctionTable);
64} 68}
diff --git a/src/core/hle/service/ptm/ptm_sysm.h b/src/core/hle/service/ptm/ptm_sysm.h
index e9938a530..8afcebbba 100644
--- a/src/core/hle/service/ptm/ptm_sysm.h
+++ b/src/core/hle/service/ptm/ptm_sysm.h
@@ -9,6 +9,15 @@
9namespace Service { 9namespace Service {
10namespace PTM { 10namespace PTM {
11 11
12class PTM_S final : public Interface {
13public:
14 PTM_S();
15
16 std::string GetPortName() const override {
17 return "ptm:s";
18 }
19};
20
12class PTM_Sysm final : public Interface { 21class PTM_Sysm final : public Interface {
13public: 22public:
14 PTM_Sysm(); 23 PTM_Sysm();