Stub AM::GetDLCTitleInfo got PMD: Gates to Infinity

This commit is contained in:
wheremyfoodat 2023-01-13 23:41:20 +02:00
parent 708bf9f040
commit 1730ab9734
4 changed files with 11 additions and 4 deletions

View file

@ -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);
}