diff options
| author | 2016-04-10 20:21:34 -0400 | |
|---|---|---|
| committer | 2016-04-10 20:21:34 -0400 | |
| commit | a1b81469a3a72f0a6550075e2a693e31dab31ea9 (patch) | |
| tree | 196b2ae1191198f1c47af2c33a145931c853c915 /src/citra_qt/configure_debug.cpp | |
| parent | Merge pull request #1653 from mailwl/blx-lr (diff) | |
| parent | Add more stuff to configure. (diff) | |
| download | yuzu-a1b81469a3a72f0a6550075e2a693e31dab31ea9.tar.gz yuzu-a1b81469a3a72f0a6550075e2a693e31dab31ea9.tar.xz yuzu-a1b81469a3a72f0a6550075e2a693e31dab31ea9.zip | |
Merge pull request #1368 from LittleWhite-tb/configure-widget
Implementation for a configure widget
Diffstat (limited to 'src/citra_qt/configure_debug.cpp')
| -rw-r--r-- | src/citra_qt/configure_debug.cpp | 32 |
1 files changed, 32 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..ba66d0833 --- /dev/null +++ b/src/citra_qt/configure_debug.cpp | |||
| @@ -0,0 +1,32 @@ | |||
| 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/gdbstub/gdbstub.h" | ||
| 9 | #include "core/settings.h" | ||
| 10 | |||
| 11 | ConfigureDebug::ConfigureDebug(QWidget *parent) : | ||
| 12 | QWidget(parent), | ||
| 13 | ui(new Ui::ConfigureDebug) | ||
| 14 | { | ||
| 15 | ui->setupUi(this); | ||
| 16 | this->setConfiguration(); | ||
| 17 | } | ||
| 18 | |||
| 19 | ConfigureDebug::~ConfigureDebug() { | ||
| 20 | } | ||
| 21 | |||
| 22 | void ConfigureDebug::setConfiguration() { | ||
| 23 | ui->toogle_gdbstub->setChecked(Settings::values.use_gdbstub); | ||
| 24 | ui->gdbport_spinbox->setEnabled(Settings::values.use_gdbstub); | ||
| 25 | ui->gdbport_spinbox->setValue(Settings::values.gdbstub_port); | ||
| 26 | } | ||
| 27 | |||
| 28 | void ConfigureDebug::applyConfiguration() { | ||
| 29 | GDBStub::ToggleServer(ui->toogle_gdbstub->isChecked()); | ||
| 30 | Settings::values.use_gdbstub = ui->toogle_gdbstub->isChecked(); | ||
| 31 | Settings::values.gdbstub_port = ui->gdbport_spinbox->value(); | ||
| 32 | } | ||