[Kernel/APT] Stub some APT and threading stuff to make OoT go further

This commit is contained in:
wheremyfoodat 2022-10-09 18:59:54 +03:00
parent df4cd0642d
commit cd13ba6271
7 changed files with 44 additions and 2 deletions

View file

@ -58,4 +58,18 @@ void Kernel::waitSynchronization1() {
logSVC("WaitSynchronization1(handle = %X, ns = %lld) (STUBBED)\n", handle, ns);
regs[0] = SVCResult::Success;
}
// Result WaitSynchronizationN(s32* out, Handle* handles, s32 handlecount, bool waitAll, s64 timeout_nanoseconds)
void Kernel::waitSynchronizationN() {
// TODO: Are these arguments even correct?
u32 ns1 = regs[0];
u32 handles = regs[1];
u32 handleCount = regs[2];
bool waitAll = regs[3] != 0;
u32 ns2 = regs[4];
u32 out = regs[5];
logSVC("WaitSynchronizationN (STUBBED)\n");
regs[0] = SVCResult::Success;
}