Panda3DS/include/services/apt.hpp
2022-10-15 21:30:38 +03:00

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);
};