From 3aef396007fbb9e394efc3a80954b80446065c72 Mon Sep 17 00:00:00 2001 From: jarupxx Date: Tue, 14 Feb 2023 06:42:38 +0900 Subject: [PATCH] Add editbox to choose directory dialog (#2340) --- Source/Project64/UserInterface/RomBrowser.cpp | 2 +- .../UserInterface/Settings/SettingsPage-Directories.cpp | 2 +- Source/Project64/UserInterface/WelcomeScreen.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Project64/UserInterface/RomBrowser.cpp b/Source/Project64/UserInterface/RomBrowser.cpp index 9462ef842..145afc494 100644 --- a/Source/Project64/UserInterface/RomBrowser.cpp +++ b/Source/Project64/UserInterface/RomBrowser.cpp @@ -1101,7 +1101,7 @@ void CRomBrowser::SelectRomDir(void) bi.pidlRoot = nullptr; bi.pszDisplayName = SelectedDir; bi.lpszTitle = title.c_str(); - bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS; + bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS | BIF_USENEWUI; bi.lpfn = (BFFCALLBACK)SelectRomDirCallBack; bi.lParam = (uint32_t)RomDir.c_str(); WriteTrace(TraceUserInterface, TraceDebug, "2"); diff --git a/Source/Project64/UserInterface/Settings/SettingsPage-Directories.cpp b/Source/Project64/UserInterface/Settings/SettingsPage-Directories.cpp index 159e52564..d594d9251 100644 --- a/Source/Project64/UserInterface/Settings/SettingsPage-Directories.cpp +++ b/Source/Project64/UserInterface/Settings/SettingsPage-Directories.cpp @@ -73,7 +73,7 @@ void COptionsDirectoriesPage::SelectDirectory(LanguageStringID Title, CModifiedE bi.pidlRoot = nullptr; bi.pszDisplayName = Buffer; bi.lpszTitle = wTitle.c_str(); - bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS; + bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS | BIF_USENEWUI; bi.lpfn = (BFFCALLBACK)SelectDirCallBack; bi.lParam = (DWORD)InitialDir.c_str(); if ((pidl = SHBrowseForFolder(&bi)) != nullptr) diff --git a/Source/Project64/UserInterface/WelcomeScreen.cpp b/Source/Project64/UserInterface/WelcomeScreen.cpp index 2405ff687..b8d47992d 100644 --- a/Source/Project64/UserInterface/WelcomeScreen.cpp +++ b/Source/Project64/UserInterface/WelcomeScreen.cpp @@ -19,7 +19,7 @@ void WelcomeScreen::SelectGameDir(UINT /*Code*/, int /*id*/, HWND /*ctl*/) bi.pidlRoot = nullptr; bi.pszDisplayName = Buffer; bi.lpszTitle = wTitle.c_str(); - bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS; + bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS | BIF_USENEWUI; bi.lpfn = (BFFCALLBACK)SelectDirCallBack; bi.lParam = (LPARAM)InitialDir.c_str(); if ((pidl = SHBrowseForFolder(&bi)) != nullptr)