Add editbox to choose directory dialog (#2340)
This commit is contained in:
parent
3acd56ae61
commit
3aef396007
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue