mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
[BOSS] Stub GetTaskIdList
This commit is contained in:
parent
c3f9f235a5
commit
857db77d06
2 changed files with 9 additions and 1 deletions
|
@ -12,6 +12,7 @@ class BOSSService {
|
|||
// Service commands
|
||||
void initializeSession(u32 messagePointer);
|
||||
void getOptoutFlag(u32 messagePointer);
|
||||
void getTaskIdList(u32 messagePointer);
|
||||
|
||||
s8 optoutFlag;
|
||||
public:
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
namespace BOSSCommands {
|
||||
enum : u32 {
|
||||
InitializeSession = 0x00010082,
|
||||
GetOptoutFlag = 0x000A0000
|
||||
GetOptoutFlag = 0x000A0000,
|
||||
GetTaskIdList = 0x000E0000
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -21,6 +22,7 @@ void BOSSService::handleSyncRequest(u32 messagePointer) {
|
|||
const u32 command = mem.read32(messagePointer);
|
||||
switch (command) {
|
||||
case BOSSCommands::GetOptoutFlag: getOptoutFlag(messagePointer); break;
|
||||
case BOSSCommands::GetTaskIdList: getTaskIdList(messagePointer); break;
|
||||
case BOSSCommands::InitializeSession: initializeSession(messagePointer); break;
|
||||
default: Helpers::panic("BOSS service requested. Command: %08X\n", command);
|
||||
}
|
||||
|
@ -35,4 +37,9 @@ void BOSSService::getOptoutFlag(u32 messagePointer) {
|
|||
log("BOSS::getOptoutFlag\n");
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
mem.write8(messagePointer + 8, optoutFlag);
|
||||
}
|
||||
|
||||
void BOSSService::getTaskIdList(u32 messagePointer) {
|
||||
log("BOSS::GetTaskIdList (stubbed)\n");
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
}
|
Loading…
Add table
Reference in a new issue