mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-07 11:13:15 +00:00
Fix clang formatting, DEBUG_ASSERT, and extra spacing
This commit is contained in:
parent
ed01f2f371
commit
ab87394b25
2 changed files with 6 additions and 9 deletions
|
@ -261,7 +261,7 @@ struct AddressSpace::Impl {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use assert to ensure success in debug builds
|
// Use assert to ensure success in debug builds
|
||||||
assert(success && "Failed to change virtual memory protection");
|
DEBUG_ASSERT(success && "Failed to change virtual memory protection");
|
||||||
}
|
}
|
||||||
|
|
||||||
HANDLE process{};
|
HANDLE process{};
|
||||||
|
@ -504,11 +504,8 @@ void AddressSpace::Unmap(VAddr virtual_addr, size_t size, VAddr start_in_vma, VA
|
||||||
|
|
||||||
void AddressSpace::Protect(VAddr virtual_addr, size_t size, MemoryPermission perms) {
|
void AddressSpace::Protect(VAddr virtual_addr, size_t size, MemoryPermission perms) {
|
||||||
const bool read = True(perms & MemoryPermission::Read);
|
const bool read = True(perms & MemoryPermission::Read);
|
||||||
|
|
||||||
const bool write = True(perms & MemoryPermission::Write);
|
const bool write = True(perms & MemoryPermission::Write);
|
||||||
|
|
||||||
const bool execute = True(perms & MemoryPermission::Execute);
|
const bool execute = True(perms & MemoryPermission::Execute);
|
||||||
|
|
||||||
return impl->Protect(virtual_addr, size, read, write, execute);
|
return impl->Protect(virtual_addr, size, read, write, execute);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue