From b238107a9932150a90eac303b902110be04d908a Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 9 Nov 2015 23:47:12 +0100 Subject: [PATCH] rsx: Dump captured commands to file --- rpcs3/Gui/RSXDebugger.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpcs3/Gui/RSXDebugger.cpp b/rpcs3/Gui/RSXDebugger.cpp index 522dce6360..c5824160f6 100644 --- a/rpcs3/Gui/RSXDebugger.cpp +++ b/rpcs3/Gui/RSXDebugger.cpp @@ -16,6 +16,7 @@ #include "MemoryViewer.h" #include +#include // TODO: Clear the object when restarting the emulator std::vector m_debug_programs; @@ -515,15 +516,20 @@ void RSXDebugger::GetMemory() m_list_commands->SetItem(i, 1, "????????"); } } - + std::ofstream command_dump; + command_dump.open("command_dump.log"); for (u32 i = 0; i < frame_debug.command_queue.size(); i++) { std::string str = rsx::get_pretty_printing_function(frame_debug.command_queue[i].first)(frame_debug.command_queue[i].second); m_list_captured_frame->SetItem(i, 0, str); + command_dump << str << "\n"; } + command_dump.close(); for (u32 i = 0;i < frame_debug.draw_calls.size(); i++) m_list_captured_draw_calls->InsertItem(0, std::to_string(frame_debug.draw_calls.size() - i - 1)); + + } void RSXDebugger::GetBuffers()