As Pseudonym suggested, now when stepping or running to it start from the beginning of the dump.

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

View File

@ -181,6 +181,8 @@ namespace GSDumpGUI
Running = true; Running = true;
ExternalEvent = new AutoResetEvent(true); ExternalEvent = new AutoResetEvent(true);
int lastVSyncField;
GSinit(); GSinit();
fixed (byte* pointer = dump.Registers) fixed (byte* pointer = dump.Registers)
{ {
@ -265,25 +267,14 @@ namespace GSDumpGUI
TCPMessage Mess = QueueMessage.Dequeue(); TCPMessage Mess = QueueMessage.Dequeue();
if (Mess.MessageType == MessageType.Step) if (Mess.MessageType == MessageType.Step)
{ {
Step(itm, pointer); RunTo = i;
i = 0;
GSData g = new GSData();
g.id = GSType.VSync;
g.data = new byte[1];
g.data[0] = 0;
Step(g, pointer);
TCPMessage Msg = new TCPMessage();
Msg.MessageType = MessageType.Step;
Msg.Parameters.Add(i);
Program.Client.Send(Msg);
ExternalEvent.Set();
} }
else else
if (Mess.MessageType == MessageType.RunToCursor) if (Mess.MessageType == MessageType.RunToCursor)
{ {
RunTo = (int)Mess.Parameters[0]; RunTo = (int)Mess.Parameters[0];
i = 0;
} }
} }
} }