mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #5529 from sum2012/kernal-load
Bypass to boot.bin from patched game
This commit is contained in:
commit
d374cf94b3
1 changed files with 12 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue