diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-07-29 20:47:33 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-01 00:16:54 -0400 |
commit | a9c921a41dec63f76f80df1f0d5dc3be40fa80de (patch) | |
tree | 51e17454ad3e03e68aff05511e76681e8d5a93eb /src/core/loader/xci.cpp | |
parent | 03149d3e4a7f8038d9c88cbeb19dee25a39e0042 (diff) |
Use ErrorEncrypted where applicable and fix no keys crash
Diffstat (limited to 'src/core/loader/xci.cpp')
-rw-r--r-- | src/core/loader/xci.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/xci.cpp b/src/core/loader/xci.cpp index b4de5bd169..74940fb831 100644 --- a/src/core/loader/xci.cpp +++ b/src/core/loader/xci.cpp @@ -48,6 +48,10 @@ ResultStatus AppLoader_XCI::Load(Kernel::SharedPtr<Kernel::Process>& process) { return ResultStatus::ErrorAlreadyLoaded; } + if (xci->GetNCAFileByType(FileSys::NCAContentType::Program) == nullptr) { + return ResultStatus::ErrorEncrypted; + } + auto result = nca_loader->Load(process); if (result != ResultStatus::Success) return result; |