summaryrefslogtreecommitdiffstats
path: root/src/core/loader/xci.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-16 17:36:55 +0200
committerLioncash <mathew1800@gmail.com>2018-10-16 17:36:58 +0200
commit73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365 (patch)
tree56438cca62e87575958db23380e557143151675d /src/core/loader/xci.cpp
parentMerge pull request #1443 from DarkLordZach/lower-loader-logs-1 (diff)
downloadyuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.tar
yuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.tar.gz
yuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.tar.bz2
yuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.tar.lz
yuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.tar.xz
yuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.tar.zst
yuzu-73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365.zip
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) {
if (xci->GetProgramNCAStatus() != ResultStatus::Success)
return xci->GetProgramNCAStatus();
- const auto nca = xci->GetProgramNCA();
- if (nca == nullptr && !Core::Crypto::KeyManager::KeyFileExists(false))
+ if (!xci->HasProgramNCA() && !Core::Crypto::KeyManager::KeyFileExists(false))
return ResultStatus::ErrorMissingProductionKeyFile;
const auto result = nca_loader->Load(process);