mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-03 02:34:48 +12:00
Add empty cfg:u service
This commit is contained in:
parent
e02ef8a213
commit
1ddba7737f
7 changed files with 55 additions and 9 deletions
include
|
@ -11,12 +11,13 @@ namespace KernelHandles {
|
|||
CurrentThread = 0xFFFF8000, // Used by the original kernel
|
||||
CurrentProcess = 0xFFFF8001, // Used by the original kernel
|
||||
APT = 0xFFFF8002, // App Title something service?
|
||||
HID = 0xFFFF8003, // Handles everything input-related including gyro
|
||||
FS = 0xFFFF8004, // Filesystem service
|
||||
GPU = 0xFFFF8005, // GPU service
|
||||
DSP = 0xFFFF8006, // DSP service (Used for audio decoding and output)
|
||||
LCD = 0xFFFF8007, // LCD service (Used for configuring the displays)
|
||||
NDM = 0xFFFF8008, // ?????
|
||||
CFG = 0xFFFF8003, // Console & region info
|
||||
HID = 0xFFFF8004, // Handles everything input-related including gyro
|
||||
FS = 0xFFFF8005, // Filesystem service
|
||||
GPU = 0xFFFF8006, // GPU service
|
||||
DSP = 0xFFFF8007, // DSP service (Used for audio decoding and output)
|
||||
LCD = 0xFFFF8008, // LCD service (Used for configuring the displays)
|
||||
NDM = 0xFFFF8009, // ?????
|
||||
|
||||
MinServiceHandle = APT,
|
||||
MaxServiceHandle = NDM,
|
||||
|
@ -48,6 +49,7 @@ namespace KernelHandles {
|
|||
static const char* getServiceName(Handle handle) {
|
||||
switch (handle) {
|
||||
case APT: return "APT";
|
||||
case CFG: return "CFG";
|
||||
case HID: return "HID";
|
||||
case FS: return "FS";
|
||||
case DSP: return "DSP";
|
||||
|
|
|
@ -27,6 +27,7 @@ namespace Log {
|
|||
|
||||
// Service loggers
|
||||
static Logger<true> aptLogger;
|
||||
static Logger<true> cfgLogger;
|
||||
static Logger<true> dspServiceLogger;
|
||||
static Logger<true> fsLogger;
|
||||
static Logger<true> hidLogger;
|
||||
|
|
15
include/services/cfg.hpp
Normal file
15
include/services/cfg.hpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class CFGService {
|
||||
Handle handle = KernelHandles::CFG;
|
||||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, cfgLogger)
|
||||
|
||||
public:
|
||||
CFGService(Memory& mem) : mem(mem) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -4,6 +4,7 @@
|
|||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
#include "services/apt.hpp"
|
||||
#include "services/cfg.hpp"
|
||||
#include "services/dsp.hpp"
|
||||
#include "services/hid.hpp"
|
||||
#include "services/fs.hpp"
|
||||
|
@ -19,6 +20,7 @@ class ServiceManager {
|
|||
MAKE_LOG_FUNCTION(log, srvLogger)
|
||||
|
||||
APTService apt;
|
||||
CFGService cfg;
|
||||
DSPService dsp;
|
||||
HIDService hid;
|
||||
FSService fs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue