diff options
| author | Mark Rowe <mrowe@bdash.net.nz> | 2025-05-02 11:04:25 -0700 |
|---|---|---|
| committer | Mark Rowe <mrowe@bdash.net.nz> | 2025-05-02 11:07:28 -0700 |
| commit | bc9f8871da54a3b5e20135d0452a21ce2bac96d9 (patch) | |
| tree | aecf33cb3426a4b59db9c3051871cbb51c3931f4 /view/sharedcache/core/VirtualMemory.cpp | |
| parent | e34544ca4c13d3c5794a3eca2eaeb48ee150c765 (diff) | |
[SharedCache] Have VirtualMemoryReader get the address size from the underlying VirtualMemory
Diffstat (limited to 'view/sharedcache/core/VirtualMemory.cpp')
| -rw-r--r-- | view/sharedcache/core/VirtualMemory.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/view/sharedcache/core/VirtualMemory.cpp b/view/sharedcache/core/VirtualMemory.cpp index 292cda06..47206467 100644 --- a/view/sharedcache/core/VirtualMemory.cpp +++ b/view/sharedcache/core/VirtualMemory.cpp @@ -178,10 +178,9 @@ void VirtualMemory::Read(void* dest, uint64_t address, size_t length) region->fileAccessor.lock()->Read(dest, offset, length); } -VirtualMemoryReader::VirtualMemoryReader(std::shared_ptr<VirtualMemory> memory, uint64_t addressSize) +VirtualMemoryReader::VirtualMemoryReader(std::shared_ptr<VirtualMemory> memory) { m_memory = memory; - m_addressSize = addressSize; m_cursor = 0; } @@ -265,7 +264,7 @@ uint64_t VirtualMemoryReader::ReadPointer() uint64_t VirtualMemoryReader::ReadPointer(uint64_t address) { - m_cursor = address + m_addressSize; + m_cursor = address + m_memory->GetAddressSize(); return m_memory->ReadPointer(address); } |
