diff options
| author | 2018-07-28 12:32:16 -0400 | |
|---|---|---|
| committer | 2018-08-06 23:06:33 -0400 | |
| commit | 9e88f03e7591bd3b91d7af9b9995a727c0b92ac9 (patch) | |
| tree | df8fb8701e41ac8ea525fe23b6b13e057e41d0b8 /src/core/loader/nca.cpp | |
| parent | Merge pull request #931 from DarkLordZach/nca-as-drd (diff) | |
| download | yuzu-9e88f03e7591bd3b91d7af9b9995a727c0b92ac9.tar.gz yuzu-9e88f03e7591bd3b91d7af9b9995a727c0b92ac9.tar.xz yuzu-9e88f03e7591bd3b91d7af9b9995a727c0b92ac9.zip | |
Avoid parsing RomFS to directory in NCA
Diffstat (limited to 'src/core/loader/nca.cpp')
| -rw-r--r-- | src/core/loader/nca.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/nca.cpp b/src/core/loader/nca.cpp index dbc67c0b5..46f5cd393 100644 --- a/src/core/loader/nca.cpp +++ b/src/core/loader/nca.cpp | |||
| @@ -77,8 +77,8 @@ ResultStatus AppLoader_NCA::ReadRomFS(FileSys::VirtualFile& dir) { | |||
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | ResultStatus AppLoader_NCA::ReadProgramId(u64& out_program_id) { | 79 | ResultStatus AppLoader_NCA::ReadProgramId(u64& out_program_id) { |
| 80 | if (nca == nullptr) | 80 | if (nca == nullptr || nca->GetStatus() != ResultStatus::Success) |
| 81 | return ResultStatus::ErrorNotLoaded; | 81 | return ResultStatus::ErrorInvalidFormat; |
| 82 | out_program_id = nca->GetTitleId(); | 82 | out_program_id = nca->GetTitleId(); |
| 83 | return ResultStatus::Success; | 83 | return ResultStatus::Success; |
| 84 | } | 84 | } |