mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
31 lines
No EOL
877 B
C++
31 lines
No EOL
877 B
C++
#pragma once
|
|
#include "helpers.hpp"
|
|
#include "kernel_types.hpp"
|
|
#include "logger.hpp"
|
|
#include "memory.hpp"
|
|
|
|
class APTService {
|
|
Handle handle = KernelHandles::APT;
|
|
Memory& mem;
|
|
MAKE_LOG_FUNCTION(log, aptLogger)
|
|
|
|
// Service commands
|
|
void appletUtility(u32 messagePointer);
|
|
void getApplicationCpuTimeLimit(u32 messagePointer);
|
|
void getLockHandle(u32 messagePointer);
|
|
void checkNew3DS(u32 messagePointer);
|
|
void checkNew3DSApp(u32 messagePointer);
|
|
void enable(u32 messagePointer);
|
|
void notifyToWait(u32 messagePointer);
|
|
void receiveParameter(u32 messagePointer);
|
|
void replySleepQuery(u32 messagePointer);
|
|
void setApplicationCpuTimeLimit(u32 messagePointer);
|
|
|
|
// Percentage of the syscore available to the application, between 5% and 89%
|
|
u32 cpuTimeLimit;
|
|
|
|
public:
|
|
APTService(Memory& mem) : mem(mem) {}
|
|
void reset();
|
|
void handleSyncRequest(u32 messagePointer);
|
|
}; |