Browse Source
Merge pull request #1435 from lioncash/xci
card_image: Ensure program_nca_status is always initialized
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/core/file_sys/card_image.cpp
|
|
|
@ -20,7 +20,9 @@ namespace FileSys { |
|
|
|
|
|
|
|
constexpr std::array<const char*, 0x4> partition_names = {"update", "normal", "secure", "logo"}; |
|
|
|
|
|
|
|
XCI::XCI(VirtualFile file_) : file(std::move(file_)), partitions(0x4) { |
|
|
|
XCI::XCI(VirtualFile file_) |
|
|
|
: file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA}, |
|
|
|
partitions(0x4) { |
|
|
|
if (file->ReadObject(&header) != sizeof(GamecardHeader)) { |
|
|
|
status = Loader::ResultStatus::ErrorBadXCIHeader; |
|
|
|
return; |
|
|
|
|