Check if data was modified in LoadIndexedXF too
This commit is contained in:
parent
b8d4d013f6
commit
7cccb4baa7
|
@ -293,8 +293,10 @@ void LoadIndexedXF(u32 val, int refarray)
|
|||
int size = ((val >> 12) & 0xF) + 1;
|
||||
//load stuff from array to address in xf mem
|
||||
|
||||
u32* newData = (u32*)Memory::GetPointer(arraybases[refarray] + arraystrides[refarray] * index);
|
||||
if (memcmp(xfmem + address, newData, size * 4))
|
||||
{
|
||||
XFMemWritten(size, address);
|
||||
|
||||
for (int i = 0; i < size; i++)
|
||||
xfmem[address + i] = Memory::Read_U32(arraybases[refarray] + arraystrides[refarray] * index + i * 4);
|
||||
memcpy_gc(xfmem + address, newData, size * 4);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue