loader: Add icon and title support to XCI

This commit is contained in:
Zach Hilman
2018-08-06 23:13:37 -04:00
parent e4422b09b6
commit 91cfe70301
7 changed files with 46 additions and 5 deletions

View File

@ -140,6 +140,10 @@ VirtualFile NCA::Decrypt(NCASectionHeader header, VirtualFile in, u64 starting_o
}
NCA::NCA(VirtualFile file_) : file(std::move(file_)) {
if (file == nullptr) {
status = Loader::ResultStatus::ErrorInvalidFormat;
return;
}
if (sizeof(NCAHeader) != file->ReadObject(&header))
LOG_ERROR(Loader, "File reader errored out during header read.");