mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Stub AM::GetDLCTitleInfo got PMD: Gates to Infinity
This commit is contained in:
parent
708bf9f040
commit
1730ab9734
4 changed files with 11 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace AMCommands {
|
||||
enum : u32 {
|
||||
GetDLCTitleInfo = 0x10050084,
|
||||
ListTitleInfo = 0x10070102
|
||||
};
|
||||
}
|
||||
|
@ -17,6 +18,7 @@ void AMService::reset() {}
|
|||
void AMService::handleSyncRequest(u32 messagePointer) {
|
||||
const u32 command = mem.read32(messagePointer);
|
||||
switch (command) {
|
||||
case AMCommands::GetDLCTitleInfo: getDLCTitleInfo(messagePointer); break;
|
||||
case AMCommands::ListTitleInfo: listTitleInfo(messagePointer); break;
|
||||
default: Helpers::panic("AM service requested. Command: %08X\n", command);
|
||||
}
|
||||
|
@ -40,4 +42,9 @@ void AMService::listTitleInfo(u32 messagePointer) {
|
|||
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
mem.write32(messagePointer + 8, ticketCount);
|
||||
}
|
||||
|
||||
void AMService::getDLCTitleInfo(u32 messagePointer) {
|
||||
log("AM::GetDLCTitleInfo (stubbed to fail)\n");
|
||||
mem.write32(messagePointer + 4, -1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue