[Kernel] Implement ArbitrationType::DecrementAndWaitIfLess

This commit is contained in:
wheremyfoodat 2022-10-10 16:57:33 +03:00
parent 81b0f3dde0
commit 6c3acda34e
3 changed files with 16 additions and 6 deletions

View file

@ -73,8 +73,7 @@ void Kernel::waitSynchronizationN() {
logSVC("WaitSynchronizationN (STUBBED)\n");
regs[0] = SVCResult::Success;
if (currentThreadIndex == 1) {
printf("WaitSynchN OoT hack triggered\n");
switchThread(0);
}
printf("Hacky WaitSync stuff for OoT triggered!!!\n");
threads[currentThreadIndex].status = ThreadStatus::Ready;
switchThread(rand() % threadCount);
}