From 09a0d046f4b17de8c7ed7a0706c62874c7fd6616 Mon Sep 17 00:00:00 2001 From: MRG95 Date: Sat, 21 Oct 2017 23:57:35 -0400 Subject: [PATCH] Repositioned current instruction to middle As soon as I tried the debugger, i wanted to move it to the middle almost instantly. Checked the code and found it sitting right here but commented out. Why? This is awesome. --- rpcs3/rpcs3qt/debugger_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/debugger_frame.cpp b/rpcs3/rpcs3qt/debugger_frame.cpp index 92da29f6e0..dd5e397f73 100644 --- a/rpcs3/rpcs3qt/debugger_frame.cpp +++ b/rpcs3/rpcs3qt/debugger_frame.cpp @@ -194,7 +194,7 @@ u32 debugger_frame::GetPc() const u32 debugger_frame::CentrePc(u32 pc) const { - return pc/* - ((m_item_count / 2) * 4)*/; + return pc - ((m_list->m_item_count / 2) * 4); } void debugger_frame::UpdateUI()