Only can use __KernelLoadExec when load BOOT.BIN

This commit is contained in:
sum2012 committed 2014-02-21 07:14:40 +08:00
1 parent b8a8cc0049
commit 98e952ea6e
1 file changed
+12 -4
+12 -4
View File
@@ -1485,10 +1485,18 @@ u32 sceKernelLoadModule(const char *name, u32 flags, u32 optionAddr)
return -1;
}
// Module was blacklisted or couldn't be decrypted, which means it's a kernel module.
// Let's just act as if it worked.
NOTICE_LOG(LOADER, "Module %s is blacklisted or undecryptable - we try __KernelLoadExec", name);
return __KernelLoadExec(name, 0, &error_string);
if (info.name == "BOOT.BIN")
{
NOTICE_LOG(LOADER, "Module %s is blacklisted or undecryptable - we try __KernelLoadExec", name)
return __KernelLoadExec(name, 0, &error_string);
}
else
{
// Module was blacklisted or couldn't be decrypted, which means it's a kernel module we don't want to run..
// Let's just act as if it worked.
NOTICE_LOG(LOADER, "Module %s is blacklisted or undecryptable - we lie about success", name)
return 1;
}
}
if (lmoption) {