mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Only can use __KernelLoadExec when load BOOT.BIN
This commit is contained in:
1 parent
b8a8cc0049
commit
98e952ea6e
1 file changed
+12
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user