summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-11 04:58:05 +0200
committerLioncash <mathew1800@gmail.com>2019-06-11 04:58:08 +0200
commit825ffd7b1f25792c68a92a6966a05a461e30041a (patch)
tree220f79ab0fa1db21fd87026c3c0bdf3f90306828 /src/core/file_sys
parentfile_sys/card_image: Use std::array deduction guides (diff)
downloadyuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar
yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.gz
yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.bz2
yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.lz
yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.xz
yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.zst
yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/card_image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp
index 1fec9b0e9..fd00e5457 100644
--- a/src/core/file_sys/card_image.cpp
+++ b/src/core/file_sys/card_image.cpp
@@ -27,7 +27,7 @@ constexpr std::array partition_names{
XCI::XCI(VirtualFile file_)
: file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA},
- partitions(0x4) {
+ partitions(partition_names.size()) {
if (file->ReadObject(&header) != sizeof(GamecardHeader)) {
status = Loader::ResultStatus::ErrorBadXCIHeader;
return;