mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
[Kernel] Cleaning up
This commit is contained in:
parent
1c4348248d
commit
ad07c70772
9 changed files with 21 additions and 37 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue