This should clean up all HLE errorcode in the codebase. I didn't removed Rust::Result as this should be a cleanup for another iteration.
25 lines
615 B
C++
25 lines
615 B
C++
#include "services/act.hpp"
|
|
#include "ipc.hpp"
|
|
|
|
namespace ACTCommands {
|
|
enum : u32 {
|
|
Initialize = 0x00010084
|
|
};
|
|
}
|
|
|
|
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);
|
|
} |