mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
Split GetPointer into two versions, to help with const correctness
This commit is contained in:
1 parent
d2a3918f5f
commit
e6403d7157
43 files changed
+169
-156
No files matched your search
@@ -245,7 +245,7 @@ namespace MIPSInt
|
||||
_dbg_assert_msg_( 0, "Misaligned lv.q at %08x (pc = %08x)", addr, PC);
|
||||
}
|
||||
#ifndef COMMON_BIG_ENDIAN
|
||||
f = reinterpret_cast<float *>(Memory::GetPointer(addr));
|
||||
f = reinterpret_cast<float *>(Memory::GetPointerWrite(addr));
|
||||
if (f)
|
||||
WriteVector(f, V_Quad, vt);
|
||||
#else
|
||||
@@ -294,7 +294,7 @@ namespace MIPSInt
|
||||
_dbg_assert_msg_( 0, "Misaligned sv.q at %08x (pc = %08x)", addr, PC);
|
||||
}
|
||||
#ifndef COMMON_BIG_ENDIAN
|
||||
f = reinterpret_cast<float *>(Memory::GetPointer(addr));
|
||||
f = reinterpret_cast<float *>(Memory::GetPointerWrite(addr));
|
||||
if (f)
|
||||
ReadVector(f, V_Quad, vt);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user