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

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