Skip to content

Commit

Permalink
Qt: Allow opening game folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Oct 19, 2021
1 parent 593241b commit 450b598
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Qt/QtMain.cpp
Expand Up @@ -5,6 +5,7 @@
// Qt 4.7+ / 5.0+ implementation of the framework.
// Currently supports: Android, Linux, Windows, Mac OSX

#include "ppsspp_config.h"
#include <QApplication>
#include <QClipboard>
#include <QDesktopWidget>
Expand Down Expand Up @@ -41,6 +42,7 @@
#include "Common/Data/Text/I18n.h"
#include "Common/Thread/ThreadUtil.h"
#include "Common/Data/Encoding/Utf8.h"
#include "Common/StringUtils.h"
#include "Core/Config.h"
#include "Core/ConfigValues.h"
#include "Core/HW/Camera.h"
Expand Down Expand Up @@ -280,7 +282,7 @@ void Vibrate(int length_ms) {
}

void OpenDirectory(const char *path) {
// Unsupported
QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromUtf8(path)));
}

void LaunchBrowser(const char *url)
Expand Down
2 changes: 1 addition & 1 deletion UI/GameScreen.cpp
Expand Up @@ -168,7 +168,7 @@ void GameScreen::CreateViews() {
if (isRecentGame(gamePath_)) {
rightColumnItems->Add(AddOtherChoice(new Choice(ga->T("Remove From Recent"))))->OnClick.Handle(this, &GameScreen::OnRemoveFromRecent);
}
#if PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)
#if (defined(USING_QT_UI) || PPSSPP_PLATFORM(WINDOWS)) && !PPSSPP_PLATFORM(UWP)
rightColumnItems->Add(AddOtherChoice(new Choice(ga->T("Show In Folder"))))->OnClick.Handle(this, &GameScreen::OnShowInFolder);
#endif
if (g_Config.bEnableCheats) {
Expand Down

0 comments on commit 450b598

Please sign in to comment.