aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/loader/nsp.cpp
diff options
context:
space:
mode:
authorbunnei <[email protected]>2020-11-24 15:16:24 -0800
committerbunnei <[email protected]>2020-11-24 15:16:24 -0800
commit5f75d9712540d53ad779babff8edd75627882006 (patch)
tree859ab2bb7b8350bf2c59cac4c84310a9e8aaff55 /src/core/loader/nsp.cpp
parent7791cc8c2e585dcc377e22a26f548db914250a5d (diff)
downloadyuzu-android-5f75d9712540d53ad779babff8edd75627882006.tar.gz
yuzu-android-5f75d9712540d53ad779babff8edd75627882006.zip
core: loader: Implement support for loading indexed programs.
Diffstat (limited to 'src/core/loader/nsp.cpp')
-rw-r--r--src/core/loader/nsp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/loader/nsp.cpp b/src/core/loader/nsp.cpp
index e821937fd..928f64c8c 100644
--- a/src/core/loader/nsp.cpp
+++ b/src/core/loader/nsp.cpp
@@ -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) {