mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[ACT/MIC/NFC] Stub function for Captain Toad
This commit is contained in:
parent
269efc3c43
commit
3935820c05
11 changed files with 144 additions and 9 deletions
31
src/core/services/act.cpp
Normal file
31
src/core/services/act.cpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#include "services/act.hpp"
|
||||
#include "ipc.hpp"
|
||||
|
||||
namespace ACTCommands {
|
||||
enum : u32 {
|
||||
Initialize = 0x00010084
|
||||
};
|
||||
}
|
||||
|
||||
namespace Result {
|
||||
enum : u32 {
|
||||
Success = 0,
|
||||
};
|
||||
}
|
||||
|
||||
void ACTService::reset() {}
|
||||
|
||||
void ACTService::handleSyncRequest(u32 messagePointer) {
|
||||
const u32 command = mem.read32(messagePointer);
|
||||
switch (command) {
|
||||
case ACTCommands::Initialize: initialize(messagePointer); break;
|
||||
default: Helpers::panic("ACT service requested. Command: %08X\n", command);
|
||||
}
|
||||
}
|
||||
|
||||
void ACTService::initialize(u32 messagePointer) {
|
||||
log("ACT::Initialize");
|
||||
|
||||
mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0));
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue