Some Qt compatibility improves for Windows.

(Reapplied since I lost it in a bad push :/)

Conflicts:
	Qt/Core.pro
	Qt/PPSSPP.pro
This commit is contained in:
Sacha authored and Henrik Rydgard committed 2013-10-19 23:18:10 +02:00
1 parent 47eece5a21
commit 8c1d4e8ad7
3 files changed
+14

No files matched your search

+8
View File
@@ -344,6 +344,14 @@ UI::EventReturn GameBrowser::LastClick(UI::EventParams &e) {
UI::EventReturn GameBrowser::HomeClick(UI::EventParams &e) {
#ifdef ANDROID
path_.SetPath(g_Config.memCardDirectory);
#elif defined(USING_QT_UI)
I18NCategory *m = GetI18NCategory("MainMenu");
QString fileName = QFileDialog::getExistingDirectory(NULL, "Browse for Folder", g_Config.currentDirectory.c_str());
if (QDir(fileName).exists()) {
g_Config.currentDirectory = fileName.toStdString();
g_Config.Save();
path_.SetPath(fileName.toStdString());
}
#elif defined(_WIN32)
I18NCategory *m = GetI18NCategory("MainMenu");
std::string folder = W32Util::BrowseForFolder(MainWindow::GetHWND(), m->T("Choose folder"));