mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +12:00
[APT] Stub AppletUtility
This commit is contained in:
parent
58b6791971
commit
4930c1a947
2 changed files with 16 additions and 2 deletions
|
@ -10,6 +10,7 @@ class APTService {
|
|||
MAKE_LOG_FUNCTION(log, aptLogger)
|
||||
|
||||
// Service commands
|
||||
void appletUtility(u32 messagePointer);
|
||||
void getLockHandle(u32 messagePointer);
|
||||
void checkNew3DS(u32 messagePointer);
|
||||
void enable(u32 messagePointer);
|
||||
|
|
|
@ -4,9 +4,10 @@ namespace APTCommands {
|
|||
enum : u32 {
|
||||
GetLockHandle = 0x00010040,
|
||||
Enable = 0x00030040,
|
||||
CheckNew3DS = 0x01020000,
|
||||
ReceiveParameter = 0x000D0080,
|
||||
NotifyToWait = 0x00430040,
|
||||
ReceiveParameter = 0x000D0080
|
||||
AppletUtility = 0x004B00C2,
|
||||
CheckNew3DS = 0x01020000
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -29,6 +30,7 @@ void APTService::reset() {}
|
|||
void APTService::handleSyncRequest(u32 messagePointer) {
|
||||
const u32 command = mem.read32(messagePointer);
|
||||
switch (command) {
|
||||
case APTCommands::AppletUtility: appletUtility(messagePointer); break;
|
||||
case APTCommands::CheckNew3DS: checkNew3DS(messagePointer); break;
|
||||
case APTCommands::Enable: enable(messagePointer); break;
|
||||
case APTCommands::GetLockHandle: getLockHandle(messagePointer); break;
|
||||
|
@ -38,6 +40,17 @@ void APTService::handleSyncRequest(u32 messagePointer) {
|
|||
}
|
||||
}
|
||||
|
||||
void APTService::appletUtility(u32 messagePointer) {
|
||||
u32 utility = mem.read32(messagePointer + 4);
|
||||
u32 inputSize = mem.read32(messagePointer + 8);
|
||||
u32 outputSize = mem.read32(messagePointer + 12);
|
||||
u32 inputPointer = mem.read32(messagePointer + 20);
|
||||
|
||||
log("APT::AppletUtility(utility = %d, input size = %x, output size = %x, inputPointer = %08X)\n", utility, inputSize,
|
||||
outputSize, inputPointer);
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
}
|
||||
|
||||
void APTService::checkNew3DS(u32 messagePointer) {
|
||||
log("APT::CheckNew3DS\n");
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
|
|
Loading…
Add table
Reference in a new issue