diff options
author | Liam <[email protected]> | 2022-05-30 19:35:01 -0400 |
---|---|---|
committer | Liam <[email protected]> | 2022-06-01 00:01:25 -0400 |
commit | fb4b3c127f7c390358d7f4cadd2f58de116fec48 (patch) | |
tree | e2588a859d364a32be0cd9e0401a345c6492d1a7 /src/yuzu/configuration/configure_debug.cpp | |
parent | f6c47df671c718117dd3d7b2d825e9668de1be95 (diff) | |
download | yuzu-android-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar.gz yuzu-android-fb4b3c127f7c390358d7f4cadd2f58de116fec48.zip |
core/debugger: Implement new GDB stub debugger
Diffstat (limited to 'src/yuzu/configuration/configure_debug.cpp')
-rw-r--r-- | src/yuzu/configuration/configure_debug.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_debug.cpp b/src/yuzu/configuration/configure_debug.cpp index d6e8b5ead..343d2aee1 100644 --- a/src/yuzu/configuration/configure_debug.cpp +++ b/src/yuzu/configuration/configure_debug.cpp @@ -24,13 +24,18 @@ ConfigureDebug::ConfigureDebug(const Core::System& system_, QWidget* parent) QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::LogDir)); QDesktopServices::openUrl(QUrl::fromLocalFile(path)); }); + + connect(ui->toggle_gdbstub, &QCheckBox::toggled, + [&]() { ui->gdbport_spinbox->setEnabled(ui->toggle_gdbstub->isChecked()); }); } ConfigureDebug::~ConfigureDebug() = default; void ConfigureDebug::SetConfiguration() { const bool runtime_lock = !system.IsPoweredOn(); - + ui->toggle_gdbstub->setChecked(Settings::values.use_gdbstub.GetValue()); + ui->gdbport_spinbox->setEnabled(Settings::values.use_gdbstub.GetValue()); + ui->gdbport_spinbox->setValue(Settings::values.gdbstub_port.GetValue()); ui->toggle_console->setEnabled(runtime_lock); ui->toggle_console->setChecked(UISettings::values.show_console.GetValue()); ui->log_filter_edit->setText(QString::fromStdString(Settings::values.log_filter.GetValue())); @@ -71,6 +76,8 @@ void ConfigureDebug::SetConfiguration() { } void ConfigureDebug::ApplyConfiguration() { + Settings::values.use_gdbstub = ui->toggle_gdbstub->isChecked(); + Settings::values.gdbstub_port = ui->gdbport_spinbox->value(); UISettings::values.show_console = ui->toggle_console->isChecked(); Settings::values.log_filter = ui->log_filter_edit->text().toStdString(); Settings::values.program_args = ui->homebrew_args_edit->text().toStdString(); |