mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
[Kernel] More cleanup
This commit is contained in:
parent
ad07c70772
commit
f100601caf
5 changed files with 32 additions and 31 deletions
|
@ -11,11 +11,7 @@ const char* Kernel::resetTypeToString(u32 type) {
|
|||
|
||||
Handle Kernel::makeEvent(ResetType resetType) {
|
||||
Handle ret = makeObject(KernelObjectType::Event);
|
||||
objects[ret].data = new EventData();
|
||||
|
||||
auto eventData = static_cast<EventData*>(objects[ret].data);
|
||||
eventData->resetType = resetType;
|
||||
|
||||
objects[ret].data = new Event(resetType);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue