[APT/CFG/Kernel] Smash Bros stuff

This commit is contained in:
wheremyfoodat 2023-03-21 22:34:29 +02:00
parent 327b071efd
commit 1078253f6c
5 changed files with 32 additions and 9 deletions

View file

@ -8,6 +8,10 @@
// Yay, more circular dependencies
class Kernel;
enum class ConsoleModel : u32 {
Old3DS, New3DS
};
class APTService {
Handle handle = KernelHandles::APT;
Memory& mem;
@ -17,6 +21,8 @@ class APTService {
std::optional<Handle> notificationEvent = std::nullopt;
std::optional<Handle> resumeEvent = std::nullopt;
ConsoleModel model = ConsoleModel::Old3DS;
MAKE_LOG_FUNCTION(log, aptLogger)
// Service commands
@ -34,6 +40,7 @@ class APTService {
void replySleepQuery(u32 messagePointer);
void setApplicationCpuTimeLimit(u32 messagePointer);
void setScreencapPostPermission(u32 messagePointer);
void theSmashBrosFunction(u32 messagePointer);
// Percentage of the syscore available to the application, between 5% and 89%
u32 cpuTimeLimit;