Dialog: Prevent reschedule on shutdown start.

This is a bit strange, but tests seem to suggest this is correct.
A worse priority thread won't run before savedata shutdown hits 0, but the
thread that initiated shutdown runs before shutdown completes.

Fixes Freakout Extreme Freeride loading savedata.
This commit is contained in:
Unknown W. Brackets committed 2021-08-14 20:15:34 -07:00
1 parent f01d4d697e
commit f530be0969
5 files changed
+10 -6

No files matched your search

+2 -1
View File
@@ -2063,7 +2063,8 @@ int __KernelStartThread(SceUID threadToStartID, int argSize, u32 argBlockPtr, bo
Core_ExecException(startThread->context.pc, currentMIPS->pc, ExecExceptionType::THREAD);
}
__KernelChangeReadyState(cur, currentThread, true);
hleReSchedule("thread started");
if (__InterruptsEnabled())
hleReSchedule("thread started");
}
// Starting a thread automatically resumes the dispatch thread if the new thread has worse priority.