mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 01:27:00 +00:00
unself.cpp: Always reset the old SELF header information before loading
This commit is contained in:
parent
8f66c50721
commit
ad22cf5051
@ -871,7 +871,7 @@ bool SELFDecrypter::LoadHeaders(bool isElf32, SelfAdditionalInfo* out_info)
|
||||
|
||||
if (out_info)
|
||||
{
|
||||
out_info->valid = false;
|
||||
*out_info = {};
|
||||
}
|
||||
|
||||
// Check SCE magic.
|
||||
@ -1411,7 +1411,7 @@ fs::file decrypt_self(fs::file elf_or_self, u8* klic_key, SelfAdditionalInfo* ou
|
||||
{
|
||||
if (out_info)
|
||||
{
|
||||
out_info->valid = false;
|
||||
*out_info = {};
|
||||
}
|
||||
|
||||
if (!elf_or_self)
|
||||
|
@ -3460,7 +3460,7 @@ utils::serial* Emulator::DeserialManager() const
|
||||
|
||||
bool Emulator::IsVsh()
|
||||
{
|
||||
return g_ps3_process_info.self_info.prog_id_hdr.program_authority_id >> 52 == 0x107; // Not only VSH but also most CoreOS LV2 SELFs need the special treatment
|
||||
return g_ps3_process_info.self_info.valid && (g_ps3_process_info.self_info.prog_id_hdr.program_authority_id >> 52 == 0x107); // Not only VSH but also most CoreOS LV2 SELFs need the special treatment
|
||||
}
|
||||
|
||||
bool Emulator::IsValidSfb(const std::string& path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user