mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
[APT] Some hacks
This commit is contained in:
parent
3ce9dc1d7b
commit
400db8ef0a
2 changed files with 7 additions and 3 deletions
|
@ -37,7 +37,7 @@ void Kernel::clearEvent() {
|
|||
logSVC("ClearEvent(event handle = %X)\n", handle);
|
||||
|
||||
if (event == nullptr) [[unlikely]] {
|
||||
Helpers::panic("Tried to clear non-existent event");
|
||||
Helpers::panic("Tried to clear non-existent event (handle = %X)", handle);
|
||||
regs[0] = SVCResult::BadHandle;
|
||||
return;
|
||||
}
|
||||
|
@ -154,6 +154,7 @@ void Kernel::waitSynchronizationN() {
|
|||
}
|
||||
|
||||
regs[0] = SVCResult::Success;
|
||||
regs[1] = waitAll ? handleCount - 1 : 0; // Index of the handle that triggered the exit. STUBBED
|
||||
t.status = ThreadStatus::WaitSyncAll;
|
||||
t.waitAll = waitAll;
|
||||
t.outPointer = outPointer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue