[DSP] Add event stubs to fix games locking up

This commit is contained in:
wheremyfoodat 2023-04-22 20:59:34 +03:00
parent 2ebbb08766
commit 908e1fc4fd
7 changed files with 94 additions and 27 deletions

View file

@ -28,8 +28,8 @@ bool Kernel::signalEvent(Handle handle) {
Event* event = object->getData<Event>();
event->fired = true;
// One shot events go back to being not fired once they wake up one or more thread
if (event->waitlist != 0 && event->resetType == ResetType::OneShot) {
// One shot events go back to being not fired once they are signaled
if (event->resetType == ResetType::Pulse) {
event->fired = false;
}
@ -165,9 +165,6 @@ void Kernel::waitSynchronizationN() {
logSVC("WaitSynchronizationN (handle pointer: %08X, count: %d, timeout = %lld)\n", handles, handleCount, ns);
if (waitAll && handleCount > 1)
Helpers::panic("Trying to wait on more than 1 object");
if (handleCount < 0)
Helpers::panic("WaitSyncN: Invalid handle count");