diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-16 19:08:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-16 19:22:31 +0200 |
commit | 53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a (patch) | |
tree | 24762c08708e238ce806e7d2ef14b9074913c77d /src | |
parent | content_archive: Split loading into separate functions (diff) | |
download | yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.tar yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.tar.gz yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.tar.bz2 yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.tar.lz yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.tar.xz yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.tar.zst yuzu-53e77ffbfe5da01ae4aa9bdac540674f98cd1c6a.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/file_sys/content_archive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp index 0f7cc3fbf..a6bd3369c 100644 --- a/src/core/file_sys/content_archive.cpp +++ b/src/core/file_sys/content_archive.cpp @@ -120,8 +120,8 @@ NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_off return; } - has_rights_id = std::find_if_not(header.rights_id.begin(), header.rights_id.end(), - [](char c) { return c == '\0'; }) != header.rights_id.end(); + has_rights_id = std::any_of(header.rights_id.begin(), header.rights_id.end(), + [](char c) { return c != '\0'; }); const std::vector<NCASectionHeader> sections = ReadSectionHeaders(); is_update = std::any_of(sections.begin(), sections.end(), [](const NCASectionHeader& header) { |