mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-31 15:53:17 +00:00
core: Add support for Neo mode memory size. (#1196)
This commit is contained in:
parent
f139762c64
commit
20915eb5b8
4 changed files with 10 additions and 2 deletions
|
@ -142,6 +142,9 @@ struct PageManager::Impl {
|
|||
}
|
||||
|
||||
void Protect(VAddr address, size_t size, bool allow_write) {
|
||||
ASSERT_MSG(owned_ranges.find(address) != owned_ranges.end(),
|
||||
"Attempted to track non-GPU memory at address {:#x}, size {:#x}.", address,
|
||||
size);
|
||||
#ifdef _WIN32
|
||||
DWORD prot = allow_write ? PAGE_READWRITE : PAGE_READONLY;
|
||||
DWORD old_prot{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue