[Kernel] Cleaning up

This commit is contained in:
wheremyfoodat 2022-09-19 22:19:36 +03:00
parent 1c4348248d
commit ad07c70772
9 changed files with 21 additions and 37 deletions

View file

@ -20,8 +20,6 @@ Handle Kernel::makeEvent(ResetType resetType) {
}
// Result CreateEvent(Handle* event, ResetType resetType)
// TODO: Just like getResourceLimit this seems to output the handle in r1 even though 3dbrew doesn't mention this
// Should the handle be written both in memory and r1, or just r1?
void Kernel::createEvent() {
const u32 outPointer = regs[0];
const u32 resetType = regs[1];
@ -34,5 +32,4 @@ void Kernel::createEvent() {
Handle handle = makeEvent(static_cast<ResetType>(resetType));
regs[0] = SVCResult::Success;
regs[1] = handle;
mem.write32(outPointer, handle);
}