mirror of https://github.com/RPCS3/rpcs3.git
Nekotekina: Fix loading nonexistent libs
Nekotekina's fix for preventing loading nonexistent libs
This commit is contained in:
parent
5d705c0e9c
commit
63169d7679
|
@ -1258,7 +1258,12 @@ static bool CheckDebugSelf(fs::file& s)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern fs::file decrypt_self(fs::file elf_or_self)
|
extern fs::file decrypt_self(fs::file elf_or_self)
|
||||||
{
|
{
|
||||||
|
if (!elf_or_self)
|
||||||
|
{
|
||||||
|
return fs::file{};
|
||||||
|
}
|
||||||
|
|
||||||
elf_or_self.seek(0);
|
elf_or_self.seek(0);
|
||||||
|
|
||||||
// Check SELF header first. Check for a debug SELF.
|
// Check SELF header first. Check for a debug SELF.
|
||||||
|
|
Loading…
Reference in New Issue