am: Properly handle operations involving content indices.

This commit is contained in:
Steveice10
2018-07-06 00:44:22 -07:00
parent 932eeefff0
commit 630a1311ca
6 changed files with 43 additions and 10 deletions

View File

@ -63,7 +63,7 @@ ResultVal<std::unique_ptr<FileBackend>> NCCHArchive::OpenFile(const Path& path,
std::memcpy(&openfile_path, binary.data(), sizeof(NCCHFilePath));
std::string file_path =
Service::AM::GetTitleContentPath(media_type, title_id, openfile_path.content_index);
Service::AM::GetTitleContentPath(media_type, title_id, openfile_path.content_index, false, true);
auto ncch_container = NCCHContainer(file_path);
Loader::ResultStatus result;