summaryrefslogtreecommitdiffstats
path: root/src/core/loader/xci.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-07-30 02:47:33 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-01 06:16:54 +0200
commita9c921a41dec63f76f80df1f0d5dc3be40fa80de (patch)
tree51e17454ad3e03e68aff05511e76681e8d5a93eb /src/core/loader/xci.cpp
parentAdd missing includes and use const where applicable (diff)
downloadyuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar
yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.gz
yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.bz2
yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.lz
yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.xz
yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.tar.zst
yuzu-a9c921a41dec63f76f80df1f0d5dc3be40fa80de.zip
Diffstat (limited to 'src/core/loader/xci.cpp')
-rw-r--r--src/core/loader/xci.cpp4
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) {
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;