[ACT] Stub GenerateUUID

This commit is contained in:
wheremyfoodat 2023-07-09 03:17:24 +03:00
parent c88ab423d3
commit 5bcc35dfc8
2 changed files with 12 additions and 1 deletions

View file

@ -12,6 +12,7 @@ class ACTService {
// Service commands
void initialize(u32 messagePointer);
void generateUUID(u32 messagePointer);
public:
ACTService(Memory& mem) : mem(mem) {}

View file

@ -3,7 +3,8 @@
namespace ACTCommands {
enum : u32 {
Initialize = 0x00010084
Initialize = 0x00010084,
GenerateUUID = 0x000D0040
};
}
@ -12,6 +13,7 @@ void ACTService::reset() {}
void ACTService::handleSyncRequest(u32 messagePointer) {
const u32 command = mem.read32(messagePointer);
switch (command) {
case ACTCommands::GenerateUUID: generateUUID(messagePointer); break;
case ACTCommands::Initialize: initialize(messagePointer); break;
default: Helpers::panic("ACT service requested. Command: %08X\n", command);
}
@ -22,4 +24,12 @@ void ACTService::initialize(u32 messagePointer) {
mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0));
mem.write32(messagePointer + 4, Result::Success);
}
void ACTService::generateUUID(u32 messagePointer) {
log("ACT::GenerateUUID (stubbed)\n");
// TODO: The header is probably wrong
mem.write32(messagePointer, IPC::responseHeader(0xD, 1, 0));
mem.write32(messagePointer + 4, Result::Success);
}