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 | f93e75f49697551be792784a329ed426940bf58d (patch) | |
| tree | 51e17454ad3e03e68aff05511e76681e8d5a93eb /src/core/loader/xci.cpp | |
| parent | 568ce6304c9a7def1ee0cd9cc65f0428d5d9a5c5 (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; |
