From 8c62a56c7167cf93b0ba755fcfda4e7f97924ac8 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Tue, 3 Jan 2012 22:26:54 +0100 Subject: [PATCH] FifoPlayer: Show full data of XF register loads (Did I do this correctly?) --- Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp b/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp index 5a321298a1..89a5144127 100644 --- a/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp +++ b/Source/Core/DolphinWX/Src/FifoPlayerDlg.cpp @@ -455,11 +455,18 @@ void FifoPlayerDlg::OnObjectListSelectionChanged (wxCommandEvent& event) { u32 cmd2 = Common::swap32(objectdata); objectdata += 4; + 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;