diff options
| author | 2018-07-29 20:47:33 -0400 | |
|---|---|---|
| committer | 2018-08-01 00:16:54 -0400 | |
| commit | a9c921a41dec63f76f80df1f0d5dc3be40fa80de (patch) | |
| tree | 51e17454ad3e03e68aff05511e76681e8d5a93eb /src/core/loader | |
| parent | Add missing includes and use const where applicable (diff) | |
| download | yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.gz yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.xz yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.zip | |
Use ErrorEncrypted where applicable and fix no keys crash
Diffstat (limited to 'src/core/loader')
| -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 b4de5bd16..74940fb83 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) { | |||
| 48 | return ResultStatus::ErrorAlreadyLoaded; | 48 | return ResultStatus::ErrorAlreadyLoaded; |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | if (xci->GetNCAFileByType(FileSys::NCAContentType::Program) == nullptr) { | ||
| 52 | return ResultStatus::ErrorEncrypted; | ||
| 53 | } | ||
| 54 | |||
| 51 | auto result = nca_loader->Load(process); | 55 | auto result = nca_loader->Load(process); |
| 52 | if (result != ResultStatus::Success) | 56 | if (result != ResultStatus::Success) |
| 53 | return result; | 57 | return result; |