mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 13:09:58 +00:00
content_archive: Simplify rights ID check
This is the same as using std::any_of with an inverted predicate.
This commit is contained in:
parent
d6604fa765
commit
53e77ffbfe
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_off
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
has_rights_id = std::find_if_not(header.rights_id.begin(), header.rights_id.end(),
|
has_rights_id = std::any_of(header.rights_id.begin(), header.rights_id.end(),
|
||||||
[](char c) { return c == '\0'; }) != header.rights_id.end();
|
[](char c) { return c != '\0'; });
|
||||||
|
|
||||||
const std::vector<NCASectionHeader> sections = ReadSectionHeaders();
|
const std::vector<NCASectionHeader> sections = ReadSectionHeaders();
|
||||||
is_update = std::any_of(sections.begin(), sections.end(), [](const NCASectionHeader& header) {
|
is_update = std::any_of(sections.begin(), sections.end(), [](const NCASectionHeader& header) {
|
||||||
|
|
Loading…
Reference in a new issue