mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 10:57:58 -05:00
Use ErrorEncrypted where applicable and fix no keys crash
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user