diff options
| author | 2017-05-08 16:02:53 -0400 | |
|---|---|---|
| committer | 2017-05-08 16:02:53 -0400 | |
| commit | 7325413cd8b4f02719ca0f87c8a70d4713333a98 (patch) | |
| tree | 2bed3e545cb8b660d695763ce27dc3069847d7b1 /src/citra_qt/main.cpp | |
| parent | Merge pull request #2682 from nicoboss/filter (diff) | |
| parent | Dyncom: Remove disassembler code (diff) | |
| download | yuzu-7325413cd8b4f02719ca0f87c8a70d4713333a98.tar.gz yuzu-7325413cd8b4f02719ca0f87c8a70d4713333a98.tar.xz yuzu-7325413cd8b4f02719ca0f87c8a70d4713333a98.zip | |
Merge pull request #2689 from yuriks/remove-disassembler
Remove built-in disassembler and related code
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index ea66cc425..d7fad555f 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -16,8 +16,6 @@ | |||
| 16 | #include "citra_qt/bootmanager.h" | 16 | #include "citra_qt/bootmanager.h" |
| 17 | #include "citra_qt/configuration/config.h" | 17 | #include "citra_qt/configuration/config.h" |
| 18 | #include "citra_qt/configuration/configure_dialog.h" | 18 | #include "citra_qt/configuration/configure_dialog.h" |
| 19 | #include "citra_qt/debugger/callstack.h" | ||
| 20 | #include "citra_qt/debugger/disassembler.h" | ||
| 21 | #include "citra_qt/debugger/graphics/graphics.h" | 19 | #include "citra_qt/debugger/graphics/graphics.h" |
| 22 | #include "citra_qt/debugger/graphics/graphics_breakpoints.h" | 20 | #include "citra_qt/debugger/graphics/graphics_breakpoints.h" |
| 23 | #include "citra_qt/debugger/graphics/graphics_cmdlists.h" | 21 | #include "citra_qt/debugger/graphics/graphics_cmdlists.h" |
| @@ -40,7 +38,6 @@ | |||
| 40 | #include "common/scm_rev.h" | 38 | #include "common/scm_rev.h" |
| 41 | #include "common/scope_exit.h" | 39 | #include "common/scope_exit.h" |
| 42 | #include "common/string_util.h" | 40 | #include "common/string_util.h" |
| 43 | #include "core/arm/disassembler/load_symbol_map.h" | ||
| 44 | #include "core/core.h" | 41 | #include "core/core.h" |
| 45 | #include "core/file_sys/archive_source_sd_savedata.h" | 42 | #include "core/file_sys/archive_source_sd_savedata.h" |
| 46 | #include "core/gdbstub/gdbstub.h" | 43 | #include "core/gdbstub/gdbstub.h" |
| @@ -130,15 +127,6 @@ void GMainWindow::InitializeDebugWidgets() { | |||
| 130 | debug_menu->addAction(microProfileDialog->toggleViewAction()); | 127 | debug_menu->addAction(microProfileDialog->toggleViewAction()); |
| 131 | #endif | 128 | #endif |
| 132 | 129 | ||
| 133 | disasmWidget = new DisassemblerWidget(this, emu_thread.get()); | ||
| 134 | addDockWidget(Qt::BottomDockWidgetArea, disasmWidget); | ||
| 135 | disasmWidget->hide(); | ||
| 136 | debug_menu->addAction(disasmWidget->toggleViewAction()); | ||
| 137 | connect(this, &GMainWindow::EmulationStarting, disasmWidget, | ||
| 138 | &DisassemblerWidget::OnEmulationStarting); | ||
| 139 | connect(this, &GMainWindow::EmulationStopping, disasmWidget, | ||
| 140 | &DisassemblerWidget::OnEmulationStopping); | ||
| 141 | |||
| 142 | registersWidget = new RegistersWidget(this); | 130 | registersWidget = new RegistersWidget(this); |
| 143 | addDockWidget(Qt::RightDockWidgetArea, registersWidget); | 131 | addDockWidget(Qt::RightDockWidgetArea, registersWidget); |
| 144 | registersWidget->hide(); | 132 | registersWidget->hide(); |
| @@ -148,11 +136,6 @@ void GMainWindow::InitializeDebugWidgets() { | |||
| 148 | connect(this, &GMainWindow::EmulationStopping, registersWidget, | 136 | connect(this, &GMainWindow::EmulationStopping, registersWidget, |
| 149 | &RegistersWidget::OnEmulationStopping); | 137 | &RegistersWidget::OnEmulationStopping); |
| 150 | 138 | ||
| 151 | callstackWidget = new CallstackWidget(this); | ||
| 152 | addDockWidget(Qt::RightDockWidgetArea, callstackWidget); | ||
| 153 | callstackWidget->hide(); | ||
| 154 | debug_menu->addAction(callstackWidget->toggleViewAction()); | ||
| 155 | |||
| 156 | graphicsWidget = new GPUCommandStreamWidget(this); | 139 | graphicsWidget = new GPUCommandStreamWidget(this); |
| 157 | addDockWidget(Qt::RightDockWidgetArea, graphicsWidget); | 140 | addDockWidget(Qt::RightDockWidgetArea, graphicsWidget); |
| 158 | graphicsWidget->hide(); | 141 | graphicsWidget->hide(); |
| @@ -269,8 +252,6 @@ void GMainWindow::ConnectWidgetEvents() { | |||
| 269 | void GMainWindow::ConnectMenuEvents() { | 252 | void GMainWindow::ConnectMenuEvents() { |
| 270 | // File | 253 | // File |
| 271 | connect(ui.action_Load_File, &QAction::triggered, this, &GMainWindow::OnMenuLoadFile); | 254 | connect(ui.action_Load_File, &QAction::triggered, this, &GMainWindow::OnMenuLoadFile); |
| 272 | connect(ui.action_Load_Symbol_Map, &QAction::triggered, this, | ||
| 273 | &GMainWindow::OnMenuLoadSymbolMap); | ||
| 274 | connect(ui.action_Select_Game_List_Root, &QAction::triggered, this, | 255 | connect(ui.action_Select_Game_List_Root, &QAction::triggered, this, |
| 275 | &GMainWindow::OnMenuSelectGameListRoot); | 256 | &GMainWindow::OnMenuSelectGameListRoot); |
| 276 | connect(ui.action_Exit, &QAction::triggered, this, &QMainWindow::close); | 257 | connect(ui.action_Exit, &QAction::triggered, this, &QMainWindow::close); |
| @@ -391,26 +372,17 @@ void GMainWindow::BootGame(const QString& filename) { | |||
| 391 | connect(render_window, SIGNAL(Closed()), this, SLOT(OnStopGame())); | 372 | connect(render_window, SIGNAL(Closed()), this, SLOT(OnStopGame())); |
| 392 | // BlockingQueuedConnection is important here, it makes sure we've finished refreshing our views | 373 | // BlockingQueuedConnection is important here, it makes sure we've finished refreshing our views |
| 393 | // before the CPU continues | 374 | // before the CPU continues |
| 394 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), disasmWidget, SLOT(OnDebugModeEntered()), | ||
| 395 | Qt::BlockingQueuedConnection); | ||
| 396 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), registersWidget, | 375 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), registersWidget, |
| 397 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | 376 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); |
| 398 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), callstackWidget, | ||
| 399 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | ||
| 400 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), waitTreeWidget, | 377 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), waitTreeWidget, |
| 401 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | 378 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); |
| 402 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), disasmWidget, SLOT(OnDebugModeLeft()), | ||
| 403 | Qt::BlockingQueuedConnection); | ||
| 404 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), registersWidget, SLOT(OnDebugModeLeft()), | 379 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), registersWidget, SLOT(OnDebugModeLeft()), |
| 405 | Qt::BlockingQueuedConnection); | 380 | Qt::BlockingQueuedConnection); |
| 406 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), callstackWidget, SLOT(OnDebugModeLeft()), | ||
| 407 | Qt::BlockingQueuedConnection); | ||
| 408 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), waitTreeWidget, SLOT(OnDebugModeLeft()), | 381 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), waitTreeWidget, SLOT(OnDebugModeLeft()), |
| 409 | Qt::BlockingQueuedConnection); | 382 | Qt::BlockingQueuedConnection); |
| 410 | 383 | ||
| 411 | // Update the GUI | 384 | // Update the GUI |
| 412 | registersWidget->OnDebugModeEntered(); | 385 | registersWidget->OnDebugModeEntered(); |
| 413 | callstackWidget->OnDebugModeEntered(); | ||
| 414 | if (ui.action_Single_Window_Mode->isChecked()) { | 386 | if (ui.action_Single_Window_Mode->isChecked()) { |
| 415 | game_list->hide(); | 387 | game_list->hide(); |
| 416 | } | 388 | } |
| @@ -531,16 +503,6 @@ void GMainWindow::OnMenuLoadFile() { | |||
| 531 | } | 503 | } |
| 532 | } | 504 | } |
| 533 | 505 | ||
| 534 | void GMainWindow::OnMenuLoadSymbolMap() { | ||
| 535 | QString filename = QFileDialog::getOpenFileName( | ||
| 536 | this, tr("Load Symbol Map"), UISettings::values.symbols_path, tr("Symbol Map (*.*)")); | ||
| 537 | if (!filename.isEmpty()) { | ||
| 538 | UISettings::values.symbols_path = QFileInfo(filename).path(); | ||
| 539 | |||
| 540 | LoadSymbolMap(filename.toStdString()); | ||
| 541 | } | ||
| 542 | } | ||
| 543 | |||
| 544 | void GMainWindow::OnMenuSelectGameListRoot() { | 506 | void GMainWindow::OnMenuSelectGameListRoot() { |
| 545 | QString dir_path = QFileDialog::getExistingDirectory(this, tr("Select Directory")); | 507 | QString dir_path = QFileDialog::getExistingDirectory(this, tr("Select Directory")); |
| 546 | if (!dir_path.isEmpty()) { | 508 | if (!dir_path.isEmpty()) { |