3
0
Fork 0
forked from suyu/suyu

service: Add the ptm:s service

3dbrew documents this as being the exact same as ptm:sysm
This commit is contained in:
Lioncash 2016-12-08 05:32:38 -05:00
parent 56656b75ab
commit 007815647c
3 changed files with 14 additions and 0 deletions

View file

@ -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);

View file

@ -59,6 +59,10 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x08180040, nullptr, "ConfigureNew3DSCPU"},
};
PTM_S::PTM_S() {
Register(FunctionTable);
}
PTM_Sysm::PTM_Sysm() {
Register(FunctionTable);
}

View file

@ -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();