diff options
| author | Tilka <tilkax@gmail.com> | 2024-04-12 20:01:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-12 20:01:09 +0100 |
| commit | 2011c7a4483942cb4001ac7edd584914670e5c33 (patch) | |
| tree | a7aa3e3e1598fec5cdbfcef9c79b7f787ca99f1f /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 9a9be5ca5154c07a6c4e9235b7e685f1f7d1eae2 (diff) | |
| parent | 54773bc5d2c847bc4e070a8a647b97a9fc76bcb0 (diff) | |
Merge pull request #12697 from JosJuice/no-getpointer-part-4
VideoCommon: Remove calls to GetPointer
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 1456fbf2d0..768356aea8 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -158,7 +158,7 @@ public: if constexpr (is_preprocess) { auto& memory = system.GetMemory(); - const u8* const start_address = memory.GetPointer(address); + const u8* const start_address = memory.GetPointerForRange(address, size); system.GetFifo().PushFifoAuxBuffer(start_address, size); @@ -179,10 +179,10 @@ public: else { auto& memory = system.GetMemory(); - start_address = memory.GetPointer(address); + start_address = memory.GetPointerForRange(address, size); } - // Avoid the crash if memory.GetPointer failed .. + // Avoid the crash if memory.GetPointerForRange failed .. if (start_address != nullptr) { // temporarily swap dl and non-dl (small "hack" for the stats) |
