Add missing memcheck to Replace_memcpy_jak

This commit is contained in:
Henrik Rydgard committed 2015-03-19 23:09:39 +01:00
1 parent acc730f944
commit f7215c39ee
1 file changed
+4 -1
+4 -1
View File
@@ -178,7 +178,10 @@ static int Replace_memcpy_jak() {
currentMIPS->r[MIPS_REG_A2] = 0;
currentMIPS->r[MIPS_REG_A3] = destPtr + bytes;
RETURN(destPtr);
#ifndef MOBILE_DEVICE
CBreakPoints::ExecMemCheck(srcPtr, false, bytes, currentMIPS->pc);
CBreakPoints::ExecMemCheck(destPtr, true, bytes, currentMIPS->pc);
#endif
return 5 + bytes * 8 + 2; // approximation. This is a slow memcpy - a byte copy loop..
}