mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Merge pull request #5529 from sum2012/kernal-load
Bypass to boot.bin from patched game
This commit is contained in:
@@ -1595,10 +1595,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 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 (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