From 7c0fc3b77724d1e921d7ddd2440be50901cc9b7c Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Fri, 5 Mar 2021 02:36:27 +0100 Subject: [PATCH] gsdump: initial implem of standard replay mode done --- pcsx2/gui/Dialogs/GSDumpDialog.cpp | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pcsx2/gui/Dialogs/GSDumpDialog.cpp b/pcsx2/gui/Dialogs/GSDumpDialog.cpp index b5c9900e62..298fc2e509 100644 --- a/pcsx2/gui/Dialogs/GSDumpDialog.cpp +++ b/pcsx2/gui/Dialogs/GSDumpDialog.cpp @@ -239,6 +239,7 @@ void Dialogs::GSDumpDialog::RunDump(wxCommandEvent& event) GSsetBaseMem((void*)regs); GSfreeze(0, &fd); + size_t i = 0; while (0!=1) { @@ -249,20 +250,15 @@ void Dialogs::GSDumpDialog::RunDump(wxCommandEvent& event) /* if DebugMode handle buttons, else:*/ - /* - while (gs_idx < dump.Data.Count) - { - GSData itm = dump.Data[gs_idx++]; - CurrentGIFPacket = itm; - Step(itm, pointer); + while (i < dump.size()) + { + ProcessDumpEvent(dump[i++], regs); - if (gs_idx < dump.Data.Count && dump.Data[gs_idx].id == GSType.VSync) - break; - } - - gs_idx = 0; - } - */ + if (dump[i].id == VSync) + break; + } + if (i >= dump.size()) + i = 0; } GSclose();