mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 23:49:01 -05:00 
			
		
		
		
	nsp: Correct status codes for extracted NSPs
Avoids all extracted NSPs being marked as error file type because they don't have program NCAs.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zach Hilman
					Zach Hilman