From 007815647cfaed90d61e12fce50de0df98e2a8ba Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Dec 2016 05:32:38 -0500 Subject: service: Add the ptm:s service 3dbrew documents this as being the exact same as ptm:sysm --- src/core/hle/service/ptm/ptm.cpp | 1 + src/core/hle/service/ptm/ptm_sysm.cpp | 4 ++++ src/core/hle/service/ptm/ptm_sysm.h | 9 +++++++++ 3 files changed, 14 insertions(+) (limited to 'src') 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) { void Init() { AddService(new PTM_Gets); AddService(new PTM_Play); + AddService(new PTM_S); AddService(new PTM_Sets); AddService(new PTM_Sysm); 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[] = { {0x08180040, nullptr, "ConfigureNew3DSCPU"}, }; +PTM_S::PTM_S() { + Register(FunctionTable); +} + PTM_Sysm::PTM_Sysm() { Register(FunctionTable); } 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 @@ namespace Service { namespace PTM { +class PTM_S final : public Interface { +public: + PTM_S(); + + std::string GetPortName() const override { + return "ptm:s"; + } +}; + class PTM_Sysm final : public Interface { public: PTM_Sysm(); -- cgit v1.2.3