diff options
| author | 2015-11-11 23:21:31 -0500 | |
|---|---|---|
| committer | 2015-11-11 23:21:31 -0500 | |
| commit | 43bb29edc5a07ee290a462dc72743d96eaadd70d (patch) | |
| tree | c42780b313be023001c41c32a6f6090fe93c2afe /src/citra_qt/main.cpp | |
| parent | Merge pull request #1236 from Subv/log_overflow (diff) | |
| parent | Fix bug with reading addresses and lengths (diff) | |
| download | yuzu-43bb29edc5a07ee290a462dc72743d96eaadd70d.tar.gz yuzu-43bb29edc5a07ee290a462dc72743d96eaadd70d.tar.xz yuzu-43bb29edc5a07ee290a462dc72743d96eaadd70d.zip | |
Merge pull request #1122 from polaris-/gdbstub
gdbstub implementation
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index bcff6be64..d6c27f0df 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -44,6 +44,7 @@ | |||
| 44 | #include "core/settings.h" | 44 | #include "core/settings.h" |
| 45 | #include "core/system.h" | 45 | #include "core/system.h" |
| 46 | #include "core/arm/disassembler/load_symbol_map.h" | 46 | #include "core/arm/disassembler/load_symbol_map.h" |
| 47 | #include "core/gdbstub/gdbstub.h" | ||
| 47 | #include "core/loader/loader.h" | 48 | #include "core/loader/loader.h" |
| 48 | 49 | ||
| 49 | #include "video_core/video_core.h" | 50 | #include "video_core/video_core.h" |
| @@ -143,6 +144,11 @@ GMainWindow::GMainWindow() : emu_thread(nullptr) | |||
| 143 | 144 | ||
| 144 | game_list->LoadInterfaceLayout(settings); | 145 | game_list->LoadInterfaceLayout(settings); |
| 145 | 146 | ||
| 147 | ui.action_Use_Gdbstub->setChecked(Settings::values.use_gdbstub); | ||
| 148 | SetGdbstubEnabled(ui.action_Use_Gdbstub->isChecked()); | ||
| 149 | |||
| 150 | GDBStub::SetServerPort(static_cast<u32>(Settings::values.gdbstub_port)); | ||
| 151 | |||
| 146 | ui.action_Use_Hardware_Renderer->setChecked(Settings::values.use_hw_renderer); | 152 | ui.action_Use_Hardware_Renderer->setChecked(Settings::values.use_hw_renderer); |
| 147 | SetHardwareRendererEnabled(ui.action_Use_Hardware_Renderer->isChecked()); | 153 | SetHardwareRendererEnabled(ui.action_Use_Hardware_Renderer->isChecked()); |
| 148 | 154 | ||
| @@ -175,6 +181,7 @@ GMainWindow::GMainWindow() : emu_thread(nullptr) | |||
| 175 | connect(ui.action_Stop, SIGNAL(triggered()), this, SLOT(OnStopGame())); | 181 | connect(ui.action_Stop, SIGNAL(triggered()), this, SLOT(OnStopGame())); |
| 176 | connect(ui.action_Use_Hardware_Renderer, SIGNAL(triggered(bool)), this, SLOT(SetHardwareRendererEnabled(bool))); | 182 | connect(ui.action_Use_Hardware_Renderer, SIGNAL(triggered(bool)), this, SLOT(SetHardwareRendererEnabled(bool))); |
| 177 | connect(ui.action_Use_Shader_JIT, SIGNAL(triggered(bool)), this, SLOT(SetShaderJITEnabled(bool))); | 183 | connect(ui.action_Use_Shader_JIT, SIGNAL(triggered(bool)), this, SLOT(SetShaderJITEnabled(bool))); |
| 184 | connect(ui.action_Use_Gdbstub, SIGNAL(triggered(bool)), this, SLOT(SetGdbstubEnabled(bool))); | ||
| 178 | connect(ui.action_Single_Window_Mode, SIGNAL(triggered(bool)), this, SLOT(ToggleWindowMode())); | 185 | connect(ui.action_Single_Window_Mode, SIGNAL(triggered(bool)), this, SLOT(ToggleWindowMode())); |
| 179 | connect(ui.action_Hotkeys, SIGNAL(triggered()), this, SLOT(OnOpenHotkeysDialog())); | 186 | connect(ui.action_Hotkeys, SIGNAL(triggered()), this, SLOT(OnOpenHotkeysDialog())); |
| 180 | 187 | ||
| @@ -449,6 +456,10 @@ void GMainWindow::SetHardwareRendererEnabled(bool enabled) { | |||
| 449 | config.Save(); | 456 | config.Save(); |
| 450 | } | 457 | } |
| 451 | 458 | ||
| 459 | void GMainWindow::SetGdbstubEnabled(bool enabled) { | ||
| 460 | GDBStub::ToggleServer(enabled); | ||
| 461 | } | ||
| 462 | |||
| 452 | void GMainWindow::SetShaderJITEnabled(bool enabled) { | 463 | void GMainWindow::SetShaderJITEnabled(bool enabled) { |
| 453 | VideoCore::g_shader_jit_enabled = enabled; | 464 | VideoCore::g_shader_jit_enabled = enabled; |
| 454 | 465 | ||