diff --git a/Qt/Core.pro b/Qt/Core.pro index 1a99e35cf9..e2b361c3a1 100755 --- a/Qt/Core.pro +++ b/Qt/Core.pro @@ -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 diff --git a/Qt/Native.pro b/Qt/Native.pro index 3971bf900c..78091d2c80 100755 --- a/Qt/Native.pro +++ b/Qt/Native.pro @@ -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 diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index a37fa58a97..255e073bce 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -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"));