Add empty PTM service for CubicNinja

This commit is contained in:
wheremyfoodat 2022-10-15 14:17:10 +03:00
parent 5d15efe72c
commit 49dc526347
7 changed files with 61 additions and 12 deletions

18
include/services/ptm.hpp Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
class PTMService {
Handle handle = KernelHandles::PTM;
Memory& mem;
MAKE_LOG_FUNCTION(log, ptmLogger)
// Service commands
public:
PTMService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};

View file

@ -11,6 +11,7 @@
#include "services/gsp_gpu.hpp"
#include "services/gsp_lcd.hpp"
#include "services/ndm.hpp"
#include "services/ptm.hpp"
class Kernel;
@ -27,6 +28,7 @@ class ServiceManager {
GPUService gsp_gpu;
LCDService gsp_lcd;
NDMService ndm;
PTMService ptm;
// "srv:" commands
void enableNotification(u32 messagePointer);