mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00: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:
parent
47eece5a21
commit
8c1d4e8ad7
@ -33,6 +33,7 @@ win32 {
|
||||
|
||||
SOURCES += ../GPU/Directx9/helper/*.cpp
|
||||
HEADERS += ../GPU/Directx9/helper/*.h
|
||||
|
||||
SOURCES += ../GPU/Directx9/*.cpp
|
||||
HEADERS += ../GPU/Directx9/*.h
|
||||
INCLUDEPATH += ../dx9sdk/Include
|
||||
|
@ -47,6 +47,11 @@ INCLUDEPATH += ../native/ext/vjson
|
||||
SOURCES += ../native/ext/stb_image/stb_image.c
|
||||
HEADERS += ../native/ext/stb_image/stb_image.h
|
||||
INCLUDEPATH += ../native/ext/stb_image
|
||||
win32 {
|
||||
SOURCES += ../native/ext/stb_image_write/stb_image_write.c
|
||||
HEADERS += ../native/ext/stb_image_write/stb_image_writer.h
|
||||
INCLUDEPATH += ../native/ext/stb_image_write
|
||||
}
|
||||
|
||||
# Stb_vorbis
|
||||
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user