mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-07 07:29:58 +01:00
Fix incorrect crypto file handling if exefs override fails
This commit is contained in:
parent
dac463d74a
commit
c13d2d7208
@ -365,9 +365,14 @@ Loader::ResultStatus NCCHContainer::LoadOverrides() {
|
|||||||
exefs_offset = 0;
|
exefs_offset = 0;
|
||||||
is_tainted = true;
|
is_tainted = true;
|
||||||
has_exefs = true;
|
has_exefs = true;
|
||||||
|
} else {
|
||||||
|
if (file->IsCrypto()) {
|
||||||
|
exefs_file = HW::UniqueData::OpenUniqueCryptoFile(
|
||||||
|
filepath, "rb", HW::UniqueData::UniqueCryptoFileID::NCCH);
|
||||||
} else {
|
} else {
|
||||||
exefs_file = std::make_unique<FileUtil::IOFile>(filepath, "rb");
|
exefs_file = std::make_unique<FileUtil::IOFile>(filepath, "rb");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (FileUtil::Exists(exefsdir_override) && FileUtil::IsDirectory(exefsdir_override)) {
|
} else if (FileUtil::Exists(exefsdir_override) && FileUtil::IsDirectory(exefsdir_override)) {
|
||||||
is_tainted = true;
|
is_tainted = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user