diff options
| -rw-r--r-- | src/yuzu/main.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu/main.h | 1 | ||||
| -rw-r--r-- | src/yuzu/main.ui | 6 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 47d52c385..ab423a1cf 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -454,6 +454,7 @@ void GMainWindow::ConnectMenuEvents() { | |||
| 454 | connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); | 454 | connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); |
| 455 | 455 | ||
| 456 | // Help | 456 | // Help |
| 457 | connect(ui.action_Open_yuzu_Folder, &QAction::triggered, this, &GMainWindow::OnOpenYuzuFolder); | ||
| 457 | connect(ui.action_Rederive, &QAction::triggered, this, | 458 | connect(ui.action_Rederive, &QAction::triggered, this, |
| 458 | std::bind(&GMainWindow::OnReinitializeKeys, this, ReinitializeKeyBehavior::Warning)); | 459 | std::bind(&GMainWindow::OnReinitializeKeys, this, ReinitializeKeyBehavior::Warning)); |
| 459 | connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnAbout); | 460 | connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnAbout); |
| @@ -1374,6 +1375,11 @@ void GMainWindow::OnLoadAmiibo() { | |||
| 1374 | } | 1375 | } |
| 1375 | } | 1376 | } |
| 1376 | 1377 | ||
| 1378 | void GMainWindow::OnOpenYuzuFolder() { | ||
| 1379 | QDesktopServices::openUrl(QUrl::fromLocalFile( | ||
| 1380 | QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::UserDir)))); | ||
| 1381 | } | ||
| 1382 | |||
| 1377 | void GMainWindow::OnAbout() { | 1383 | void GMainWindow::OnAbout() { |
| 1378 | AboutDialog aboutDialog(this); | 1384 | AboutDialog aboutDialog(this); |
| 1379 | aboutDialog.exec(); | 1385 | aboutDialog.exec(); |
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index af637d89e..929250e8c 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h | |||
| @@ -167,6 +167,7 @@ private slots: | |||
| 167 | void OnMenuRecentFile(); | 167 | void OnMenuRecentFile(); |
| 168 | void OnConfigure(); | 168 | void OnConfigure(); |
| 169 | void OnLoadAmiibo(); | 169 | void OnLoadAmiibo(); |
| 170 | void OnOpenYuzuFolder(); | ||
| 170 | void OnAbout(); | 171 | void OnAbout(); |
| 171 | void OnToggleFilterBar(); | 172 | void OnToggleFilterBar(); |
| 172 | void OnDisplayTitleBars(bool); | 173 | void OnDisplayTitleBars(bool); |
diff --git a/src/yuzu/main.ui b/src/yuzu/main.ui index 48d099591..28cf269e7 100644 --- a/src/yuzu/main.ui +++ b/src/yuzu/main.ui | |||
| @@ -110,6 +110,7 @@ | |||
| 110 | <string>&Help</string> | 110 | <string>&Help</string> |
| 111 | </property> | 111 | </property> |
| 112 | <addaction name="action_Report_Compatibility"/> | 112 | <addaction name="action_Report_Compatibility"/> |
| 113 | <addaction name="action_Open_yuzu_Folder" /> | ||
| 113 | <addaction name="separator"/> | 114 | <addaction name="separator"/> |
| 114 | <addaction name="action_About"/> | 115 | <addaction name="action_About"/> |
| 115 | </widget> | 116 | </widget> |
| @@ -277,6 +278,11 @@ | |||
| 277 | <bool>false</bool> | 278 | <bool>false</bool> |
| 278 | </property> | 279 | </property> |
| 279 | </action> | 280 | </action> |
| 281 | <action name="action_Open_yuzu_Folder"> | ||
| 282 | <property name="text"> | ||
| 283 | <string>Open yuzu Folder</string> | ||
| 284 | </property> | ||
| 285 | </action> | ||
| 280 | </widget> | 286 | </widget> |
| 281 | <resources/> | 287 | <resources/> |
| 282 | <connections/> | 288 | <connections/> |