summaryrefslogtreecommitdiff
path: root/src/core/loader/xci.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-10-18 11:51:47 -0400
committerGravatar GitHub2018-10-18 11:51:47 -0400
commitd4ff4152ad72c6b6111e234152285c94125b646b (patch)
tree088dc40401f64c33d5376c1dcf50d71a19eb7ab7 /src/core/loader/xci.cpp
parentMerge pull request #1505 from FernandoS27/tex-3d (diff)
parentXCI: Add function for checking the existence of the program NCA (diff)
downloadyuzu-d4ff4152ad72c6b6111e234152285c94125b646b.tar.gz
yuzu-d4ff4152ad72c6b6111e234152285c94125b646b.tar.xz
yuzu-d4ff4152ad72c6b6111e234152285c94125b646b.zip
Merge pull request #1510 from lioncash/xci
XCI: Add function for checking the existence of the program NCA
Diffstat (limited to 'src/core/loader/xci.cpp')
-rw-r--r--src/core/loader/xci.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/loader/xci.cpp b/src/core/loader/xci.cpp
index 7a619acb4..461607c95 100644
--- a/src/core/loader/xci.cpp
+++ b/src/core/loader/xci.cpp
@@ -59,8 +59,7 @@ ResultStatus AppLoader_XCI::Load(Kernel::Process& process) {
59 if (xci->GetProgramNCAStatus() != ResultStatus::Success) 59 if (xci->GetProgramNCAStatus() != ResultStatus::Success)
60 return xci->GetProgramNCAStatus(); 60 return xci->GetProgramNCAStatus();
61 61
62 const auto nca = xci->GetProgramNCA(); 62 if (!xci->HasProgramNCA() && !Core::Crypto::KeyManager::KeyFileExists(false))
63 if (nca == nullptr && !Core::Crypto::KeyManager::KeyFileExists(false))
64 return ResultStatus::ErrorMissingProductionKeyFile; 63 return ResultStatus::ErrorMissingProductionKeyFile;
65 64
66 const auto result = nca_loader->Load(process); 65 const auto result = nca_loader->Load(process);