mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-11-12 09:08:51 +01:00
cli: add launch setting to open debugger
This commit is contained in:
1 parent
22b0b8b0f8
commit
5ead58008d
4 files changed
+19
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user