summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2018-01-03 03:44:27 +0100
committerGitHub <noreply@github.com>2018-01-03 03:44:27 +0100
commitfd13851df26937dadb681adb12864149c48698ba (patch)
treef0ede563e56f694f8659ffb58fd6fab184d8d85c /Source/Core/DolphinQt2/MainWindow.cpp
parentcb168b184386f169aeb828f660ac63c5bc3e540c (diff)
parentb63ec57c1e5ace830ab67f0d4779b782d08b7b21 (diff)
Merge pull request #6076 from spycrab/qt_debugger
Qt: Implement Debugger (part 1 of ∞)
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index 99e762cdb8..a425d8891e 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -1,3 +1,4 @@
+
// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
@@ -46,6 +47,9 @@
#include "DolphinQt2/Config/LogWidget.h"
#include "DolphinQt2/Config/Mapping/MappingWindow.h"
#include "DolphinQt2/Config/SettingsWindow.h"
+#include "DolphinQt2/Debugger/BreakpointWidget.h"
+#include "DolphinQt2/Debugger/RegisterWidget.h"
+#include "DolphinQt2/Debugger/WatchWidget.h"
#include "DolphinQt2/FIFOPlayerWindow.h"
#include "DolphinQt2/Host.h"
#include "DolphinQt2/HotkeyScheduler.h"
@@ -97,6 +101,8 @@ MainWindow::~MainWindow()
{
m_render_widget->deleteLater();
ShutdownControllers();
+
+ Config::Save();
}
void MainWindow::InitControllers()
@@ -166,6 +172,14 @@ void MainWindow::CreateComponents()
connect(m_fifo_window, &FIFOPlayerWindow::LoadFIFORequested, this,
[this](const QString& path) { StartGame(path); });
+ m_register_widget = new RegisterWidget(this);
+ m_watch_widget = new WatchWidget(this);
+ m_breakpoint_widget = new BreakpointWidget(this);
+
+ connect(m_watch_widget, &WatchWidget::RequestMemoryBreakpoint,
+ [this](u32 addr) { m_breakpoint_widget->AddAddressMBP(addr); });
+ connect(m_register_widget, &RegisterWidget::RequestMemoryBreakpoint,
+ [this](u32 addr) { m_breakpoint_widget->AddAddressMBP(addr); });
#if defined(HAVE_XRANDR) && HAVE_XRANDR
m_graphics_window = new GraphicsWindow(
@@ -314,8 +328,14 @@ void MainWindow::ConnectStack()
setTabPosition(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea, QTabWidget::North);
addDockWidget(Qt::RightDockWidgetArea, m_log_widget);
addDockWidget(Qt::RightDockWidgetArea, m_log_config_widget);
+ addDockWidget(Qt::RightDockWidgetArea, m_register_widget);
+ addDockWidget(Qt::RightDockWidgetArea, m_watch_widget);
+ addDockWidget(Qt::RightDockWidgetArea, m_breakpoint_widget);
tabifyDockWidget(m_log_widget, m_log_config_widget);
+ tabifyDockWidget(m_log_widget, m_register_widget);
+ tabifyDockWidget(m_log_widget, m_watch_widget);
+ tabifyDockWidget(m_log_widget, m_breakpoint_widget);
}
void MainWindow::Open()