nsp: Use title ID from NPDM metadata for extracted type NSPs

Avoids 0 being used as title ID for all extracted NSPs.
This commit is contained in:
Zach Hilman 2019-06-10 00:19:23 -04:00
parent 58c127c1d8
commit 5231fb95e6
2 changed files with 22 additions and 1 deletions

View file

@ -77,7 +77,7 @@ AppLoader_NSP::LoadResult AppLoader_NSP::Load(Kernel::Process& process) {
return {ResultStatus::ErrorAlreadyLoaded, {}};
}
if (title_id == 0) {
if (!nsp->IsExtractedType() && title_id == 0) {
return {ResultStatus::ErrorNSPMissingProgramNCA, {}};
}