rpcsx/rpcs3/Gui/MemoryViewer.h
Alexandro Sánchez Bach 5e1a958ee6 New debugging features, cellGame & minor changes
Two cellGame functions partially implemented:
- cellGameGetParamInt
- cellGameGetParamString

New debugging features:
- Call Stack viewer added
- Memory Viewer rewritten (Not finished yet)

Modified definition of UNIMPLEMENTED_FUNC to improve compatibility with
other compilers: Thanks @krofna

Replaced the "Compiler" menu entry with "Tools" and "Memory Viewer"
entry added.

NOTE: To "quickly" browse the memory using the Memory Viewer you can use
the scrollbar. Notice the irony of the word 'quickly' since the memory
viewer is actually slow as fuck. I will fix that soon. As you can see,
I'd like to add a Raw image viewer in the future in order to "see"
textures directly from memory.
2013-11-23 05:47:19 +01:00

47 lines
1,002 B
C++

#pragma once
#include <wx/listctrl.h>
class MemoryViewerPanel : public wxFrame
{
//static const uint LINE_COUNT = 50;
//static const uint COL_COUNT = 17;
u32 m_addr;
u32 m_colcount;
u32 m_rowcount;
//wxListView* hex_wind;
wxTextCtrl* t_addr;
wxSpinCtrl* sc_bytes;
wxSpinCtrl* sc_img_size_x;
wxSpinCtrl* sc_img_size_y;
wxComboBox* cbox_img_mode;
wxTextCtrl* t_mem_addr;
wxTextCtrl* t_mem_hex;
wxTextCtrl* t_mem_ascii;
public:
bool exit;
MemoryViewerPanel(wxWindow* parent);
~MemoryViewerPanel()
{
exit = true;
}
//virtual void OnResize(wxSizeEvent& event);
virtual void OnChangeToolsAddr(wxCommandEvent& event);
virtual void OnChangeToolsBytes(wxCommandEvent& event);
virtual void OnScrollMemory(wxMouseEvent& event);
virtual void Next(wxCommandEvent& event);
virtual void Prev(wxCommandEvent& event);
virtual void fNext(wxCommandEvent& event);
virtual void fPrev(wxCommandEvent& event);
virtual void ShowMemory();
void SetPC(const uint pc) { m_addr = pc; }
};