diff options
| author | 2016-10-04 23:01:56 -0400 | |
|---|---|---|
| committer | 2016-10-04 23:01:56 -0400 | |
| commit | 09c3e444d42856ca0978153dcabcb5c3884877b9 (patch) | |
| tree | 89732a2264868d7dddc8f4c8355c0afac62b108c /src/citra_qt/main.cpp | |
| parent | Merge pull request #2106 from wwylele/delete-recursive (diff) | |
| parent | move ResetType to kernel.h (diff) | |
| download | yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.gz yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.tar.xz yuzu-09c3e444d42856ca0978153dcabcb5c3884877b9.zip | |
Merge pull request #1652 from wwylele/kernal-tool
Debugger: implement wait tree widget
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 0c7bedfcf..8322e2305 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include "citra_qt/debugger/profiler.h" | 25 | #include "citra_qt/debugger/profiler.h" |
| 26 | #include "citra_qt/debugger/ramview.h" | 26 | #include "citra_qt/debugger/ramview.h" |
| 27 | #include "citra_qt/debugger/registers.h" | 27 | #include "citra_qt/debugger/registers.h" |
| 28 | #include "citra_qt/debugger/wait_tree.h" | ||
| 28 | #include "citra_qt/game_list.h" | 29 | #include "citra_qt/game_list.h" |
| 29 | #include "citra_qt/hotkeys.h" | 30 | #include "citra_qt/hotkeys.h" |
| 30 | #include "citra_qt/main.h" | 31 | #include "citra_qt/main.h" |
| @@ -104,6 +105,10 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 104 | connect(graphicsSurfaceViewerAction, SIGNAL(triggered()), this, | 105 | connect(graphicsSurfaceViewerAction, SIGNAL(triggered()), this, |
| 105 | SLOT(OnCreateGraphicsSurfaceViewer())); | 106 | SLOT(OnCreateGraphicsSurfaceViewer())); |
| 106 | 107 | ||
| 108 | waitTreeWidget = new WaitTreeWidget(this); | ||
| 109 | addDockWidget(Qt::LeftDockWidgetArea, waitTreeWidget); | ||
| 110 | waitTreeWidget->hide(); | ||
| 111 | |||
| 107 | QMenu* debug_menu = ui.menu_View->addMenu(tr("Debugging")); | 112 | QMenu* debug_menu = ui.menu_View->addMenu(tr("Debugging")); |
| 108 | debug_menu->addAction(graphicsSurfaceViewerAction); | 113 | debug_menu->addAction(graphicsSurfaceViewerAction); |
| 109 | debug_menu->addSeparator(); | 114 | debug_menu->addSeparator(); |
| @@ -119,6 +124,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 119 | debug_menu->addAction(graphicsBreakpointsWidget->toggleViewAction()); | 124 | debug_menu->addAction(graphicsBreakpointsWidget->toggleViewAction()); |
| 120 | debug_menu->addAction(graphicsVertexShaderWidget->toggleViewAction()); | 125 | debug_menu->addAction(graphicsVertexShaderWidget->toggleViewAction()); |
| 121 | debug_menu->addAction(graphicsTracingWidget->toggleViewAction()); | 126 | debug_menu->addAction(graphicsTracingWidget->toggleViewAction()); |
| 127 | debug_menu->addAction(waitTreeWidget->toggleViewAction()); | ||
| 122 | 128 | ||
| 123 | // Set default UI state | 129 | // Set default UI state |
| 124 | // geometry: 55% of the window contents are in the upper screen half, 45% in the lower half | 130 | // geometry: 55% of the window contents are in the upper screen half, 45% in the lower half |
| @@ -184,6 +190,9 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 184 | connect(this, SIGNAL(EmulationStarting(EmuThread*)), graphicsTracingWidget, | 190 | connect(this, SIGNAL(EmulationStarting(EmuThread*)), graphicsTracingWidget, |
| 185 | SLOT(OnEmulationStarting(EmuThread*))); | 191 | SLOT(OnEmulationStarting(EmuThread*))); |
| 186 | connect(this, SIGNAL(EmulationStopping()), graphicsTracingWidget, SLOT(OnEmulationStopping())); | 192 | connect(this, SIGNAL(EmulationStopping()), graphicsTracingWidget, SLOT(OnEmulationStopping())); |
| 193 | connect(this, SIGNAL(EmulationStarting(EmuThread*)), waitTreeWidget, | ||
| 194 | SLOT(OnEmulationStarting(EmuThread*))); | ||
| 195 | connect(this, SIGNAL(EmulationStopping()), waitTreeWidget, SLOT(OnEmulationStopping())); | ||
| 187 | 196 | ||
| 188 | // Setup hotkeys | 197 | // Setup hotkeys |
| 189 | RegisterHotkey("Main Window", "Load File", QKeySequence::Open); | 198 | RegisterHotkey("Main Window", "Load File", QKeySequence::Open); |
| @@ -345,12 +354,16 @@ void GMainWindow::BootGame(const std::string& filename) { | |||
| 345 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | 354 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); |
| 346 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), callstackWidget, | 355 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), callstackWidget, |
| 347 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | 356 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); |
| 357 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), waitTreeWidget, | ||
| 358 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | ||
| 348 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), disasmWidget, SLOT(OnDebugModeLeft()), | 359 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), disasmWidget, SLOT(OnDebugModeLeft()), |
| 349 | Qt::BlockingQueuedConnection); | 360 | Qt::BlockingQueuedConnection); |
| 350 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), registersWidget, SLOT(OnDebugModeLeft()), | 361 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), registersWidget, SLOT(OnDebugModeLeft()), |
| 351 | Qt::BlockingQueuedConnection); | 362 | Qt::BlockingQueuedConnection); |
| 352 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), callstackWidget, SLOT(OnDebugModeLeft()), | 363 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), callstackWidget, SLOT(OnDebugModeLeft()), |
| 353 | Qt::BlockingQueuedConnection); | 364 | Qt::BlockingQueuedConnection); |
| 365 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), waitTreeWidget, SLOT(OnDebugModeLeft()), | ||
| 366 | Qt::BlockingQueuedConnection); | ||
| 354 | 367 | ||
| 355 | // Update the GUI | 368 | // Update the GUI |
| 356 | registersWidget->OnDebugModeEntered(); | 369 | registersWidget->OnDebugModeEntered(); |