mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[AC] Add service + SetClientVersion
This commit is contained in:
parent
400db8ef0a
commit
94fe205c48
7 changed files with 62 additions and 5 deletions
|
@ -10,6 +10,7 @@ namespace KernelHandles {
|
|||
// Hardcoded handles
|
||||
CurrentThread = 0xFFFF8000, // Used by the original kernel
|
||||
CurrentProcess = 0xFFFF8001, // Used by the original kernel
|
||||
AC,
|
||||
APT, // App Title something service?
|
||||
CECD, // Streetpass stuff?
|
||||
CFG, // CFG service (Console & region info)
|
||||
|
@ -22,7 +23,7 @@ namespace KernelHandles {
|
|||
NDM, // ?????
|
||||
PTM, // PTM service (Used for accessing various console info, such as battery, shell and pedometer state)
|
||||
|
||||
MinServiceHandle = APT,
|
||||
MinServiceHandle = AC,
|
||||
MaxServiceHandle = PTM,
|
||||
|
||||
GSPSharedMemHandle = MaxServiceHandle + 1, // Handle for the GSP shared memory
|
||||
|
|
19
include/services/ac.hpp
Normal file
19
include/services/ac.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class ACService {
|
||||
Handle handle = KernelHandles::AC;
|
||||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, acLogger)
|
||||
|
||||
// Service commands
|
||||
void setClientVersion(u32 messagePointer);
|
||||
|
||||
public:
|
||||
ACService(Memory& mem) : mem(mem) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -9,7 +9,7 @@ class CECDService {
|
|||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, cecdLogger)
|
||||
|
||||
// Service commands
|
||||
// Service commands
|
||||
|
||||
public:
|
||||
CECDService(Memory& mem) : mem(mem) {}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
#include "services/ac.hpp"
|
||||
#include "services/apt.hpp"
|
||||
#include "services/cecd.hpp"
|
||||
#include "services/cfg.hpp"
|
||||
|
@ -28,6 +29,7 @@ class ServiceManager {
|
|||
|
||||
MAKE_LOG_FUNCTION(log, srvLogger)
|
||||
|
||||
ACService ac;
|
||||
APTService apt;
|
||||
CECDService cecd;
|
||||
CFGService cfg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue