core: loader: Implement support for loading indexed programs.
This commit is contained in:
parent
5f53d285aa
commit
9f8d7748d9
12 changed files with 74 additions and 26 deletions
|
@ -23,8 +23,9 @@ namespace Loader {
|
|||
|
||||
AppLoader_NSP::AppLoader_NSP(FileSys::VirtualFile file,
|
||||
const Service::FileSystem::FileSystemController& fsc,
|
||||
const FileSys::ContentProvider& content_provider)
|
||||
: AppLoader(file), nsp(std::make_unique<FileSys::NSP>(file)),
|
||||
const FileSys::ContentProvider& content_provider,
|
||||
std::size_t program_index)
|
||||
: AppLoader(file), nsp(std::make_unique<FileSys::NSP>(file, program_index)),
|
||||
title_id(nsp->GetProgramTitleID()) {
|
||||
|
||||
if (nsp->GetStatus() != ResultStatus::Success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue