summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-04 00:44:28 +0200
committerGitHub <noreply@github.com>2018-10-04 00:44:28 +0200
commit8679934693d7db11c18fc22b7bac5c4c826e0eac (patch)
tree9511c224f7c39491808e2ba28cebc8fd14b673f0 /src/core
parentMerge pull request #1407 from DarkLordZach/dlc (diff)
parentcard_image: Ensure program_nca_status is always initialized (diff)
downloadyuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.tar
yuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.tar.gz
yuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.tar.bz2
yuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.tar.lz
yuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.tar.xz
yuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.tar.zst
yuzu-8679934693d7db11c18fc22b7bac5c4c826e0eac.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/card_image.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp
index edfc1bbd4..8f5142a07 100644
--- a/src/core/file_sys/card_image.cpp
+++ b/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;