diff --git a/Qt/QtMain.cpp b/Qt/QtMain.cpp index b642f7442153..2205dad741fb 100644 --- a/Qt/QtMain.cpp +++ b/Qt/QtMain.cpp @@ -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 #include #include @@ -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" @@ -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) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index 9cb05ca450c2..7a885187f564 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -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) {