mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Crash fix by @hrydgard
This commit is contained in:
parent
5b9a506b82
commit
5f7cbc9603
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ static u32 sceUtilityLoadModule(u32 module) {
|
|||
}
|
||||
|
||||
// Some games, like Kamen Rider Climax Heroes OOO, require an error if dependencies aren't loaded yet.
|
||||
for (const int *dep = info->dependencies; *dep != 0; ++dep) {
|
||||
for (const int *dep = info->dependencies; dep && *dep == 0; ++dep) {
|
||||
if (currentlyLoadedModules.find(*dep) == currentlyLoadedModules.end()) {
|
||||
ERROR_LOG(SCEUTILITY, "sceUtilityLoadModule(%i): dependent module %i not loaded", module, *dep);
|
||||
return hleDelayResult(SCE_KERNEL_ERROR_LIBRARY_NOTFOUND, "utility module load attempt", 25000);
|
||||
|
|
Loading…
Add table
Reference in a new issue