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 2013-10-20 04:48:28 +10:00 committed by Henrik Rydgard
parent 47eece5a21
commit 8c1d4e8ad7
3 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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

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"));