diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 175b7c45cb..e00a35e5e1 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -14,6 +14,7 @@ #include "Core/BootManager.h" #include "Core/ConfigManager.h" +#include "Core/HW/ProcessorInterface.h" #include "DolphinQt/AboutDialog.h" #include "DolphinQt/MainWindow.h" @@ -70,6 +71,7 @@ DMainWindow::DMainWindow(QWidget* parent_widget) connect(m_game_tracker, SIGNAL(StartGame()), this, SLOT(OnPlay())); connect(m_ui->actionStop, SIGNAL(triggered()), this, SLOT(OnStop())); connect(m_ui->actionStop_mnu, SIGNAL(triggered()), this, SLOT(OnStop())); + connect(m_ui->actionReset, SIGNAL(triggered()), this, SLOT(OnReset())); connect(m_ui->actionWebsite, SIGNAL(triggered()), this, SLOT(OnOpenWebsite())); connect(m_ui->actionOnlineDocs, SIGNAL(triggered()), this, SLOT(OnOpenDocs())); @@ -270,6 +272,12 @@ bool DMainWindow::Stop() return true; } +void DMainWindow::OnReset() +{ + // TODO: Movie needs to be reset here + ProcessorInterface::ResetButton_Tap(); +} + void DMainWindow::OnGameListStyleChanged() { if (m_ui->actionListView->isChecked()) diff --git a/Source/Core/DolphinQt/MainWindow.h b/Source/Core/DolphinQt/MainWindow.h index 79c5489eb5..3808f77e9c 100644 --- a/Source/Core/DolphinQt/MainWindow.h +++ b/Source/Core/DolphinQt/MainWindow.h @@ -47,6 +47,7 @@ private slots: void OnBrowse(); void OnExit(); void OnPlay(); + void OnReset(); // View menu void OnGameListStyleChanged(); diff --git a/Source/Core/DolphinQt/MainWindow.ui b/Source/Core/DolphinQt/MainWindow.ui index 54fdeccc6f..38f5a038e4 100644 --- a/Source/Core/DolphinQt/MainWindow.ui +++ b/Source/Core/DolphinQt/MainWindow.ui @@ -51,6 +51,7 @@ + @@ -225,6 +226,11 @@ Stop + + + Reset + +