summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-10 06:21:41 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-10 06:21:41 +0200
commitb957a4862ff370f7f8c213159eb49c3743dd93f5 (patch)
tree745ae07dba82dc4e6de3294c67acf1b3418b77fa /src/core/file_sys
parentnsp: Use title ID from NPDM metadata for extracted type NSPs (diff)
downloadyuzu-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.cpp5
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;