sceKernelWaitSemaCB() should run callbacks first.
Patapon 2 gets back to the menu with this.
This commit is contained in:
parent
63bde2cb59
commit
eace0e75c1
3 changed files with 20 additions and 1 deletions
|
@ -2765,6 +2765,20 @@ void ActionAfterCallback::run(MipsCall &call) {
|
|||
}
|
||||
}
|
||||
|
||||
bool __KernelCurHasReadyCallbacks() {
|
||||
if (readyCallbacksCount == 0)
|
||||
return false;
|
||||
|
||||
Thread *thread = __GetCurrentThread();
|
||||
for (int i = 0; i < THREAD_CALLBACK_NUM_TYPES; i++) {
|
||||
if (thread->readyCallbacks[i].size()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check callbacks on the current thread only.
|
||||
// Returns true if any callbacks were processed on the current thread.
|
||||
bool __KernelCheckThreadCallbacks(Thread *thread, bool force)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue