mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
48
src/gui/debugger/DumpWindow.cpp
Normal file
48
src/gui/debugger/DumpWindow.cpp
Normal file
|
@ -0,0 +1,48 @@
|
|||
#include "gui/wxgui.h"
|
||||
#include "gui/debugger/DumpWindow.h"
|
||||
|
||||
#include "gui/debugger/DebuggerWindow2.h"
|
||||
#include "Cafe/HW/Espresso/Debugger/Debugger.h"
|
||||
#include "gui/debugger/DumpCtrl.h"
|
||||
|
||||
enum
|
||||
{
|
||||
// REGISTER
|
||||
REGISTER_ADDRESS_R0 = wxID_HIGHEST + 8200,
|
||||
REGISTER_LABEL_R0 = REGISTER_ADDRESS_R0 + 32,
|
||||
REGISTER_LABEL_FPR0_0 = REGISTER_LABEL_R0 + 32,
|
||||
REGISTER_LABEL_FPR1_0 = REGISTER_LABEL_R0 + 32,
|
||||
};
|
||||
|
||||
DumpWindow::DumpWindow(DebuggerWindow2& parent, const wxPoint& main_position, const wxSize& main_size)
|
||||
: wxFrame(&parent, wxID_ANY, wxT("Memory Dump"), wxDefaultPosition, wxSize(600, 250), wxSYSTEM_MENU | wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER | wxFRAME_FLOAT_ON_PARENT)
|
||||
{
|
||||
this->wxWindowBase::SetBackgroundColour(*wxWHITE);
|
||||
|
||||
wxBoxSizer* main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
m_dump_ctrl = new DumpCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxScrolledWindowStyle);
|
||||
main_sizer->Add(m_dump_ctrl, 1, wxEXPAND);
|
||||
|
||||
this->SetSizer(main_sizer);
|
||||
this->wxWindowBase::Layout();
|
||||
|
||||
this->Centre(wxBOTH);
|
||||
|
||||
if (parent.GetConfig().data().pin_to_main)
|
||||
OnMainMove(main_position, main_size);
|
||||
}
|
||||
|
||||
void DumpWindow::OnMainMove(const wxPoint& main_position, const wxSize& main_size)
|
||||
{
|
||||
wxSize size(600, 250);
|
||||
this->SetSize(size);
|
||||
|
||||
wxPoint position = main_position;
|
||||
position.y += main_size.GetHeight();
|
||||
this->SetPosition(position);
|
||||
}
|
||||
|
||||
void DumpWindow::OnGameLoaded()
|
||||
{
|
||||
m_dump_ctrl->Init();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue