diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-10 06:21:41 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-10 06:21:41 +0200 |
commit | b957a4862ff370f7f8c213159eb49c3743dd93f5 (patch) | |
tree | 745ae07dba82dc4e6de3294c67acf1b3418b77fa /src/core/file_sys | |
parent | nsp: Use title ID from NPDM metadata for extracted type NSPs (diff) | |
download | yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.tar yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.tar.gz yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.tar.bz2 yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.tar.lz yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.tar.xz yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.tar.zst yuzu-b957a4862ff370f7f8c213159eb49c3743dd93f5.zip |
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/submission_package.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/submission_package.cpp b/src/core/file_sys/submission_package.cpp index 753d2f58a..691ca90c8 100644 --- a/src/core/file_sys/submission_package.cpp +++ b/src/core/file_sys/submission_package.cpp @@ -14,6 +14,7 @@ #include "core/file_sys/content_archive.h" #include "core/file_sys/nca_metadata.h" #include "core/file_sys/partition_filesystem.h" +#include "core/file_sys/program_metadata.h" #include "core/file_sys/submission_package.h" #include "core/loader/loader.h" @@ -78,6 +79,10 @@ Loader::ResultStatus NSP::GetStatus() const { } Loader::ResultStatus NSP::GetProgramStatus(u64 title_id) const { + if (IsExtractedType() && GetExeFS() != nullptr && FileSys::IsDirectoryExeFS(GetExeFS())) { + return Loader::ResultStatus::Success; + } + const auto iter = program_status.find(title_id); if (iter == program_status.end()) return Loader::ResultStatus::ErrorNSPMissingProgramNCA; |