diff options
Diffstat (limited to 'src/citra_qt/configure_debug.cpp')
| -rw-r--r-- | src/citra_qt/configure_debug.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/citra_qt/configure_debug.cpp b/src/citra_qt/configure_debug.cpp new file mode 100644 index 000000000..dc3d7b906 --- /dev/null +++ b/src/citra_qt/configure_debug.cpp | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | // Copyright 2016 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "citra_qt/configure_debug.h" | ||
| 6 | #include "ui_configure_debug.h" | ||
| 7 | |||
| 8 | #include "core/settings.h" | ||
| 9 | |||
| 10 | ConfigureDebug::ConfigureDebug(QWidget *parent) : | ||
| 11 | QWidget(parent), | ||
| 12 | ui(new Ui::ConfigureDebug) | ||
| 13 | { | ||
| 14 | ui->setupUi(this); | ||
| 15 | this->setConfiguration(); | ||
| 16 | } | ||
| 17 | |||
| 18 | ConfigureDebug::~ConfigureDebug() { | ||
| 19 | } | ||
| 20 | |||
| 21 | void ConfigureDebug::setConfiguration() { | ||
| 22 | ui->toogle_gdbstub->setChecked(Settings::values.use_gdbstub); | ||
| 23 | ui->gdbport_spinbox->setEnabled(Settings::values.use_gdbstub); | ||
| 24 | ui->gdbport_spinbox->setValue(Settings::values.gdbstub_port); | ||
| 25 | } | ||
| 26 | |||
| 27 | void ConfigureDebug::applyConfiguration() { | ||
| 28 | Settings::values.use_gdbstub = ui->toogle_gdbstub->isChecked(); | ||
| 29 | Settings::values.gdbstub_port = ui->gdbport_spinbox->value(); | ||
| 30 | Settings::Apply(); | ||
| 31 | } | ||