mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 21:11:21 -08:00
ldr: Mark IsValidNROHash() as a const member function
This doesn't modify instance state, so it can be made const.
This commit is contained in:
parent
0032cf3818
commit
dae2449880
@ -480,11 +480,10 @@ private:
|
||||
std::map<VAddr, NROInfo> nro;
|
||||
std::map<VAddr, std::vector<SHA256Hash>> nrr;
|
||||
|
||||
bool IsValidNROHash(const SHA256Hash& hash) {
|
||||
return std::any_of(
|
||||
nrr.begin(), nrr.end(), [&hash](const std::pair<VAddr, std::vector<SHA256Hash>>& p) {
|
||||
return std::find(p.second.begin(), p.second.end(), hash) != p.second.end();
|
||||
});
|
||||
bool IsValidNROHash(const SHA256Hash& hash) const {
|
||||
return std::any_of(nrr.begin(), nrr.end(), [&hash](const auto& p) {
|
||||
return std::find(p.second.begin(), p.second.end(), hash) != p.second.end();
|
||||
});
|
||||
}
|
||||
|
||||
static bool IsValidNRO(const NROHeader& header, u64 nro_size, u64 bss_size) {
|
||||
|
Loading…
Reference in New Issue
Block a user