summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-05 06:19:15 +0100
committerGitHub <noreply@github.com>2018-11-05 06:19:15 +0100
commitacdc770cfbb3001818ded53daf44588b3d5deaa8 (patch)
tree94c56284c6063672a4171b01f8e8abb89ba9315f
parentMerge pull request #1625 from FernandoS27/astc (diff)
parentqt: Add help option to open yuzu folder (diff)
downloadyuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.tar
yuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.tar.gz
yuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.tar.bz2
yuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.tar.lz
yuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.tar.xz
yuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.tar.zst
yuzu-acdc770cfbb3001818ded53daf44588b3d5deaa8.zip
-rw-r--r--src/yuzu/main.cpp6
-rw-r--r--src/yuzu/main.h1
-rw-r--r--src/yuzu/main.ui6
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() {
connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen);
// Help
+ connect(ui.action_Open_yuzu_Folder, &QAction::triggered, this, &GMainWindow::OnOpenYuzuFolder);
connect(ui.action_Rederive, &QAction::triggered, this,
std::bind(&GMainWindow::OnReinitializeKeys, this, ReinitializeKeyBehavior::Warning));
connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnAbout);
@@ -1374,6 +1375,11 @@ void GMainWindow::OnLoadAmiibo() {
}
}
+void GMainWindow::OnOpenYuzuFolder() {
+ QDesktopServices::openUrl(QUrl::fromLocalFile(
+ QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::UserDir))));
+}
+
void GMainWindow::OnAbout() {
AboutDialog aboutDialog(this);
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:
void OnMenuRecentFile();
void OnConfigure();
void OnLoadAmiibo();
+ void OnOpenYuzuFolder();
void OnAbout();
void OnToggleFilterBar();
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 @@
<string>&amp;Help</string>
</property>
<addaction name="action_Report_Compatibility"/>
+ <addaction name="action_Open_yuzu_Folder" />
<addaction name="separator"/>
<addaction name="action_About"/>
</widget>
@@ -277,6 +278,11 @@
<bool>false</bool>
</property>
</action>
+ <action name="action_Open_yuzu_Folder">
+ <property name="text">
+ <string>Open yuzu Folder</string>
+ </property>
+ </action>
</widget>
<resources/>
<connections/>