mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 12:34:37 +00:00
Fix flag description
This commit is contained in:
parent
fbab952472
commit
8258a4b66f
@ -376,8 +376,8 @@ int MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, size_t size, M
|
|||||||
// To account for this, unmap any reserved areas within this mapping range first.
|
// To account for this, unmap any reserved areas within this mapping range first.
|
||||||
auto unmap_addr = mapped_addr;
|
auto unmap_addr = mapped_addr;
|
||||||
auto unmap_size = size;
|
auto unmap_size = size;
|
||||||
// If flag NoOverwrite is provided, allow overwriting mapped VMAs.
|
// If flag NoOverwrite is provided, don't overwrite mapped VMAs.
|
||||||
// Otherwise, we can only overwrite unmapped or reserved VMAs.
|
// When it isn't provided, VMAs can be overwritten regardless of if they're mapped.
|
||||||
auto should_overwrite = False(flags & MemoryMapFlags::NoOverwrite) || !vma.IsMapped();
|
auto should_overwrite = False(flags & MemoryMapFlags::NoOverwrite) || !vma.IsMapped();
|
||||||
while (should_overwrite && unmap_addr < mapped_addr + size && remaining_size < size) {
|
while (should_overwrite && unmap_addr < mapped_addr + size && remaining_size < size) {
|
||||||
auto unmapped = UnmapBytesFromEntry(unmap_addr, vma, unmap_size);
|
auto unmapped = UnmapBytesFromEntry(unmap_addr, vma, unmap_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user