yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge branch 'yuzu-emu:master' into master

This commit is contained in:
BytesGalore 2022-03-06 11:38:18 +01:00 committed by GitHub
commit 5784aa1064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -327,8 +327,8 @@ private:
bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const { bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const {
const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length}); const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length});
if (it != placeholders.end() && it->lower() == virtual_offset + length) { if (it != placeholders.end() && it->lower() == virtual_offset + length) {
const bool is_root = it == placeholders.begin() && virtual_offset == 0; return it == placeholders.begin() ? virtual_offset == 0
return is_root || std::prev(it)->upper() == virtual_offset; : std::prev(it)->upper() == virtual_offset;
} }
return false; return false;
} }