diff options
| author | 2019-06-10 22:58:05 -0400 | |
|---|---|---|
| committer | 2019-06-10 22:58:08 -0400 | |
| commit | 825ffd7b1f25792c68a92a6966a05a461e30041a (patch) | |
| tree | 220f79ab0fa1db21fd87026c3c0bdf3f90306828 /src/core | |
| parent | file_sys/card_image: Use std::array deduction guides (diff) | |
| download | yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.gz yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.tar.xz yuzu-825ffd7b1f25792c68a92a6966a05a461e30041a.zip | |
file_sys/card_image: Get rid of a magic number
We can just use the size of the array to dehardcode it.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/card_image.cpp | 2 |
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{ | |||
| 27 | 27 | ||
| 28 | XCI::XCI(VirtualFile file_) | 28 | XCI::XCI(VirtualFile file_) |
| 29 | : file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA}, | 29 | : file(std::move(file_)), program_nca_status{Loader::ResultStatus::ErrorXCIMissingProgramNCA}, |
| 30 | partitions(0x4) { | 30 | partitions(partition_names.size()) { |
| 31 | if (file->ReadObject(&header) != sizeof(GamecardHeader)) { | 31 | if (file->ReadObject(&header) != sizeof(GamecardHeader)) { |
| 32 | status = Loader::ResultStatus::ErrorBadXCIHeader; | 32 | status = Loader::ResultStatus::ErrorBadXCIHeader; |
| 33 | return; | 33 | return; |