mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Add BOSS service
This commit is contained in:
parent
243224eed3
commit
f965dea916
7 changed files with 60 additions and 5 deletions
|
@ -12,7 +12,8 @@ namespace KernelHandles {
|
|||
CurrentProcess = 0xFFFF8001, // Used by the original kernel
|
||||
AC, // Something network related
|
||||
APT, // App Title something service?
|
||||
CECD, // Streetpass stuff?
|
||||
BOSS, // Streetpass stuff?
|
||||
CECD, // More Streetpass stuff?
|
||||
CFG, // CFG service (Console & region info)
|
||||
HID, // HID service (Handles everything input-related including gyro)
|
||||
FRD, // Friend service (Miiverse friend service)
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace Log {
|
|||
// Service loggers
|
||||
static Logger<false> acLogger;
|
||||
static Logger<false> aptLogger;
|
||||
static Logger<false> bossLogger;
|
||||
static Logger<false> cecdLogger;
|
||||
static Logger<false> cfgLogger;
|
||||
static Logger<false> dspServiceLogger;
|
||||
|
|
19
include/services/boss.hpp
Normal file
19
include/services/boss.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class BOSSService {
|
||||
Handle handle = KernelHandles::BOSS;
|
||||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, bossLogger)
|
||||
|
||||
// Service commands
|
||||
void initializeSession(u32 messagePointer);
|
||||
|
||||
public:
|
||||
BOSSService(Memory& mem) : mem(mem) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -6,6 +6,7 @@
|
|||
#include "memory.hpp"
|
||||
#include "services/ac.hpp"
|
||||
#include "services/apt.hpp"
|
||||
#include "services/boss.hpp"
|
||||
#include "services/cecd.hpp"
|
||||
#include "services/cfg.hpp"
|
||||
#include "services/dsp.hpp"
|
||||
|
@ -32,6 +33,7 @@ class ServiceManager {
|
|||
|
||||
ACService ac;
|
||||
APTService apt;
|
||||
BOSSService boss;
|
||||
CECDService cecd;
|
||||
CFGService cfg;
|
||||
DSPService dsp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue