unself.cpp: Always reset the old SELF header information before loading

This commit is contained in:
brian218 2023-06-08 23:00:00 +08:00 committed by Megamouse
parent 8f66c50721
commit ad22cf5051
2 changed files with 3 additions and 3 deletions

View file

@ -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)