mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-03-24 06:05:24 +01:00
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.
47 lines
1,002 B
C++
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; }
|
|
}; |