mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-04-28 12:47:57 +03:00
Fix incorrect crypto file handling if exefs override fails
This commit is contained in:
parent
dac463d74a
commit
c13d2d7208
1 changed files with 6 additions and 1 deletions
|
@ -366,7 +366,12 @@ Loader::ResultStatus NCCHContainer::LoadOverrides() {
|
|||
is_tainted = true;
|
||||
has_exefs = true;
|
||||
} else {
|
||||
exefs_file = std::make_unique<FileUtil::IOFile>(filepath, "rb");
|
||||
if (file->IsCrypto()) {
|
||||
exefs_file = HW::UniqueData::OpenUniqueCryptoFile(
|
||||
filepath, "rb", HW::UniqueData::UniqueCryptoFileID::NCCH);
|
||||
} else {
|
||||
exefs_file = std::make_unique<FileUtil::IOFile>(filepath, "rb");
|
||||
}
|
||||
}
|
||||
} else if (FileUtil::Exists(exefsdir_override) && FileUtil::IsDirectory(exefsdir_override)) {
|
||||
is_tainted = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue