gsdump: initial implem of standard replay mode done

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-03-05 02:36:27 +01:00 committed by Kojin
parent 20d825b054
commit 7c0fc3b777
1 changed files with 9 additions and 13 deletions

View File

@ -239,6 +239,7 @@ void Dialogs::GSDumpDialog::RunDump(wxCommandEvent& event)
GSsetBaseMem((void*)regs); GSsetBaseMem((void*)regs);
GSfreeze(0, &fd); GSfreeze(0, &fd);
size_t i = 0;
while (0!=1) while (0!=1)
{ {
@ -249,20 +250,15 @@ void Dialogs::GSDumpDialog::RunDump(wxCommandEvent& event)
/* if DebugMode handle buttons, else:*/ /* if DebugMode handle buttons, else:*/
/* while (i < dump.size())
while (gs_idx < dump.Data.Count) {
{ ProcessDumpEvent(dump[i++], regs);
GSData itm = dump.Data[gs_idx++];
CurrentGIFPacket = itm;
Step(itm, pointer);
if (gs_idx < dump.Data.Count && dump.Data[gs_idx].id == GSType.VSync) if (dump[i].id == VSync)
break; break;
} }
if (i >= dump.size())
gs_idx = 0; i = 0;
}
*/
} }
GSclose(); GSclose();