diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-16 11:36:55 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-16 11:36:58 -0400 |
commit | 73e1e929a2aecdb26b9db8ea9a418a3f4e9c1365 (patch) | |
tree | 56438cca62e87575958db23380e557143151675d /src/core/loader | |
parent | 78f2a6a9e1d3a226a3afcec2b651cf61391921ae (diff) |
XCI: Add function for checking the existence of the program NCA
The only reason the getter existed was to check whether or not the
program NCA was null. Instead, we can just provide a function to query
for the existence of it, instead of exposing it entirely.
Diffstat (limited to 'src/core/loader')
-rw-r--r-- | src/core/loader/xci.cpp | 3 |
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); |