Forgot to reset the registers. My bad.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4125 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
feal87@gmail.com 2010-12-22 18:58:43 +00:00
parent a8f1683392
commit 9be3624120
1 changed files with 9 additions and 1 deletions

View File

@ -184,7 +184,9 @@ namespace GSDumpGUI
int lastVSyncField;
GSinit();
fixed (byte* pointer = dump.Registers)
byte[] tempregisters = new byte[8192];
Array.Copy(dump.Registers, tempregisters, 8192);
fixed (byte* pointer = tempregisters)
{
GSsetBaseMem(new IntPtr(pointer));
Int32 HWND = 0;
@ -269,12 +271,18 @@ namespace GSDumpGUI
{
RunTo = i;
i = 0;
Marshal.Copy(dump.Registers, 0, new IntPtr(pointer), 8192);
GSfreeze(0, new IntPtr(fr));
}
else
if (Mess.MessageType == MessageType.RunToCursor)
{
RunTo = (int)Mess.Parameters[0];
i = 0;
Marshal.Copy(dump.Registers, 0, new IntPtr(pointer), 8192);
GSfreeze(0, new IntPtr(fr));
}
}
}