mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
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:
1 parent
47eece5a21
commit
8c1d4e8ad7
3 files changed
+14
No files matched your search
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user