Panda3DS/src/core/services/nim.cpp
2023-01-06 03:46:53 +02:00

28 lines
No EOL
590 B
C++

#include "services/nim.hpp"
namespace NIMCommands {
enum : u32 {
Initialize = 0x00210000
};
}
namespace Result {
enum : u32 {
Success = 0,
};
}
void NIMService::reset() {}
void NIMService::handleSyncRequest(u32 messagePointer) {
const u32 command = mem.read32(messagePointer);
switch (command) {
case NIMCommands::Initialize: initialize(messagePointer); break;
default: Helpers::panic("NIM service requested. Command: %08X\n", command);
}
}
void NIMService::initialize(u32 messagePointer) {
log("NIM::Initialize\n");
mem.write32(messagePointer + 4, Result::Success);
}