mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 02:24:38 +00:00
Fix clang formatting, DEBUG_ASSERT, and extra spacing
This commit is contained in:
parent
ed01f2f371
commit
ab87394b25
@ -261,7 +261,7 @@ struct AddressSpace::Impl {
|
||||
}
|
||||
|
||||
// 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{};
|
||||
@ -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) {
|
||||
const bool read = True(perms & MemoryPermission::Read);
|
||||
|
||||
const bool write = True(perms & MemoryPermission::Write);
|
||||
|
||||
const bool execute = True(perms & MemoryPermission::Execute);
|
||||
|
||||
return impl->Protect(virtual_addr, size, read, write, execute);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user