MCPcopy Create free account
hub / github.com/cemu-project/Cemu / OnDebugViewPPCDebugger

Method OnDebugViewPPCDebugger

src/gui/MainWindow.cpp:1159–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1157}
1158
1159void MainWindow::OnDebugViewPPCDebugger(wxCommandEvent& event)
1160{
1161 if (m_debugger_window && m_debugger_window->IsShown())
1162 {
1163 m_debugger_window->Close();
1164 m_debugger_window = nullptr;
1165 return;
1166 }
1167
1168 auto rect = GetDesktopRect();
1169 /*
1170 sint32 new_width = max(rect.GetWidth() * 0.70, rect.GetWidth() - 850);
1171 this->SetSize(new_width, 480);*/
1172
1173 this->SetSize(800, 450 + 50);
1174 this->CenterOnScreen();
1175
1176 auto pos = this->GetPosition();
1177 pos.y = std::min(pos.y + 200, rect.GetHeight() - 400);
1178 this->SetPosition(pos);
1179
1180 m_debugger_window = new DebuggerWindow2(*this, rect);
1181 m_debugger_window->Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnDebuggerClose, this);
1182 m_debugger_window->Show(true);
1183}
1184
1185void MainWindow::OnDebugViewAudioDebugger(wxCommandEvent& event)
1186{

Callers

nothing calls this directly

Calls 4

GetPositionMethod · 0.80
ShowMethod · 0.80
CloseMethod · 0.45
SetPositionMethod · 0.45

Tested by

no test coverage detected