From a8f168339219b096c5e062f78a1b077be8f973b6 Mon Sep 17 00:00:00 2001 From: "feal87@gmail.com" Date: Wed, 22 Dec 2010 18:45:54 +0000 Subject: [PATCH] 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 --- tools/GSDumpGUI/Library/GSDXWrapper.cs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/tools/GSDumpGUI/Library/GSDXWrapper.cs b/tools/GSDumpGUI/Library/GSDXWrapper.cs index e4d0ba91e2..5984e39bdf 100644 --- a/tools/GSDumpGUI/Library/GSDXWrapper.cs +++ b/tools/GSDumpGUI/Library/GSDXWrapper.cs @@ -181,6 +181,8 @@ namespace GSDumpGUI Running = true; ExternalEvent = new AutoResetEvent(true); + int lastVSyncField; + GSinit(); fixed (byte* pointer = dump.Registers) { @@ -265,25 +267,14 @@ namespace GSDumpGUI TCPMessage Mess = QueueMessage.Dequeue(); if (Mess.MessageType == MessageType.Step) { - Step(itm, pointer); - - 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(); + RunTo = i; + i = 0; } else if (Mess.MessageType == MessageType.RunToCursor) { RunTo = (int)Mess.Parameters[0]; + i = 0; } } }