cli: add launch setting to open debugger

This commit is contained in:
Crementif committed 2026-08-21 21:33:01 +02:00
1 parent 22b0b8b0f8
commit 5ead58008d
4 files changed
+19 -1

No files matched your search

+11
View File
@@ -377,6 +377,9 @@ MainWindow::MainWindow()
{
g_gdbstub = std::make_unique<GDBServer>(GetConfig().gdb_port);
}
if (LaunchSettings::OpenDebuggerEnabled())
OpenPPCDebugger();
}
MainWindow::~MainWindow()
@@ -1190,6 +1193,14 @@ void MainWindow::OnDebugViewPPCDebugger(wxCommandEvent& event)
return;
}
OpenPPCDebugger();
}
void MainWindow::OpenPPCDebugger()
{
if (m_debugger_window)
return;
auto rect = GetDesktopRect();
/*
sint32 new_width = max(rect.GetWidth() * 0.70, rect.GetWidth() - 850);