mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[ldr:ro] Add service skeleton
This commit is contained in:
parent
c77a2551ac
commit
c24c4a9d83
7 changed files with 75 additions and 4 deletions
|
@ -23,6 +23,7 @@ namespace KernelHandles {
|
|||
GPU, // GPU service
|
||||
DSP, // DSP service (Used for audio decoding and output)
|
||||
LCD, // LCD service (Used for configuring the displays)
|
||||
LDR_RO, // Loader service. Used for loading CROs.
|
||||
MIC, // MIC service (Controls the microphone)
|
||||
NIM, // Updates, DLC, etc
|
||||
NDM, // ?????
|
||||
|
@ -72,6 +73,7 @@ namespace KernelHandles {
|
|||
case DSP: return "DSP";
|
||||
case GPU: return "GPU";
|
||||
case LCD: return "LCD";
|
||||
case LDR_RO: return "LDR:RO";
|
||||
case MIC: return "MIC";
|
||||
case NDM: return "NDM";
|
||||
case NIM: return "NIM";
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace Log {
|
|||
static Logger<false> hidLogger;
|
||||
static Logger<false> gspGPULogger;
|
||||
static Logger<false> gspLCDLogger;
|
||||
static Logger<false> ldrLogger;
|
||||
static Logger<false> micLogger;
|
||||
static Logger<false> nimLogger;
|
||||
static Logger<false> ndmLogger;
|
||||
|
|
20
include/services/ldr_ro.hpp
Normal file
20
include/services/ldr_ro.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class LDRService {
|
||||
Handle handle = KernelHandles::LDR_RO;
|
||||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, ldrLogger)
|
||||
|
||||
// Service commands
|
||||
void initialize(u32 messagePointer);
|
||||
void loadCRR(u32 messagePointer);
|
||||
|
||||
public:
|
||||
LDRService(Memory& mem) : mem(mem) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -17,6 +17,7 @@
|
|||
#include "services/fs.hpp"
|
||||
#include "services/gsp_gpu.hpp"
|
||||
#include "services/gsp_lcd.hpp"
|
||||
#include "services/ldr_ro.hpp"
|
||||
#include "services/mic.hpp"
|
||||
#include "services/nim.hpp"
|
||||
#include "services/ndm.hpp"
|
||||
|
@ -48,6 +49,7 @@ class ServiceManager {
|
|||
FSService fs;
|
||||
GPUService gsp_gpu;
|
||||
LCDService gsp_lcd;
|
||||
LDRService ldr;
|
||||
MICService mic;
|
||||
NIMService nim;
|
||||
NDMService ndm;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue