From 31c394e9b5e38b8db81aadbc91ad8496a7260308 Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Thu, 1 Nov 2018 22:05:44 -0400 Subject: [PATCH 1/2] qt: Add help option to open yuzu folder --- src/citra_qt/main.cpp | 7 +++++++ src/citra_qt/main.h | 1 + src/citra_qt/main.ui | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index dc1b82136..fc9dbad8a 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -569,6 +569,8 @@ void GMainWindow::ConnectMenuEvents() { }); // Help + connect(ui.action_Open_Citra_Folder, &QAction::triggered, this, + &GMainWindow::OnOpenCitraFolder); connect(ui.action_FAQ, &QAction::triggered, []() { QDesktopServices::openUrl(QUrl("https://citra-emu.org/wiki/faq/")); }); connect(ui.action_About, &QAction::triggered, this, &GMainWindow::OnMenuAboutCitra); @@ -1330,6 +1332,11 @@ void GMainWindow::OnRemoveAmiibo() { } } +void GMainWindow::OnOpenCitraFolder() { + QDesktopServices::openUrl(QUrl::fromLocalFile( + QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::UserDir)))); +} + void GMainWindow::OnToggleFilterBar() { game_list->setFilterVisible(ui.action_Show_Filter_Bar->isChecked()); if (ui.action_Show_Filter_Bar->isChecked()) { diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h index 684a9e332..71498f060 100644 --- a/src/citra_qt/main.h +++ b/src/citra_qt/main.h @@ -168,6 +168,7 @@ private slots: void OnConfigure(); void OnLoadAmiibo(); void OnRemoveAmiibo(); + void OnOpenCitraFolder(); void OnToggleFilterBar(); void OnDisplayTitleBars(bool); void ToggleFullscreen(); diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui index 77ac7e3ac..4283579f1 100644 --- a/src/citra_qt/main.ui +++ b/src/citra_qt/main.ui @@ -147,6 +147,8 @@ &Help + + @@ -440,6 +442,11 @@ Remove + + + Open Citra Folder + + From 3a1fe87f6ca38dc88c2238fb2393be6e40eae302 Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Tue, 13 Nov 2018 17:17:47 -0500 Subject: [PATCH 2/2] qt: Move Open yuzu Folder action from Help to File --- src/citra_qt/main.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui index 4283579f1..037eb46ba 100644 --- a/src/citra_qt/main.ui +++ b/src/citra_qt/main.ui @@ -71,6 +71,8 @@ + + @@ -147,8 +149,6 @@ &Help - -