FifoPlayer: Show full data of XF register loads (Did I do this correctly?)

This commit is contained in:
NeoBrainX 2012-01-03 22:26:54 +01:00 committed by NeoBrainX
parent 700123c55b
commit 8c62a56c71
1 changed files with 9 additions and 2 deletions

View File

@ -455,11 +455,18 @@ void FifoPlayerDlg::OnObjectListSelectionChanged (wxCommandEvent& event)
{ {
u32 cmd2 = Common::swap32(objectdata); u32 cmd2 = Common::swap32(objectdata);
objectdata += 4; objectdata += 4;
u8 streamSize = ((cmd2 >> 16) & 15) + 1; u8 streamSize = ((cmd2 >> 16) & 15) + 1;
newLabel = wxString::Format(wxT("XF %08X(%02X) ..."), cmd2, streamSize); const u8* stream_start = objectdata;
const u8* stream_end = stream_start + streamSize * 4;
objectdata += streamSize * 4; newLabel = wxString::Format(wxT("XF %08X "), cmd2);
while (objectdata < stream_end)
{
newLabel += wxString::Format(wxT("%02X"), *objectdata++);
if (((objectdata - stream_start) % 4) == 0) newLabel += wxT(" ");
}
} }
break; break;