-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folder browser (like when clicking Browse...): Preinitialize with the…
… current folder.
- Loading branch information
Showing
10 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <string_view> | ||
#include <vector> | ||
#include <thread> | ||
|
||
namespace W32Util | ||
{ | ||
std::string BrowseForFolder(HWND parent, const char *title); | ||
std::string BrowseForFolder(HWND parent, const wchar_t *title); | ||
bool BrowseForFileName (bool _bLoad, HWND _hParent, const wchar_t*_pTitle, | ||
const wchar_t *_pInitialFolder,const wchar_t *_pFilter,const wchar_t*_pExtension, | ||
std::string& _strFileName); | ||
std::vector<std::string> BrowseForFileNameMultiSelect(bool _bLoad, HWND _hParent, const wchar_t*_pTitle, | ||
const wchar_t*_pInitialFolder,const wchar_t*_pFilter,const wchar_t*_pExtension); | ||
namespace W32Util { | ||
|
||
std::string UserDocumentsPath(); | ||
// Can't make initialPath a string_view, need the null so might as well require it. | ||
std::string BrowseForFolder(HWND parent, std::string_view title, std::string_view initialPath); | ||
std::string BrowseForFolder(HWND parent, const wchar_t *title, std::string_view initialPath); | ||
|
||
bool CreateDesktopShortcut(const std::string &argumentPath, std::string gameTitle); | ||
} | ||
bool BrowseForFileName(bool _bLoad, HWND _hParent, | ||
const wchar_t *_pTitle, const wchar_t *_pInitialFolder, const wchar_t *_pFilter, const wchar_t *_pExtension, | ||
std::string& _strFileName); | ||
|
||
std::vector<std::string> BrowseForFileNameMultiSelect(bool _bLoad, HWND _hParent, const wchar_t *_pTitle, | ||
const wchar_t *_pInitialFolder, const wchar_t *_pFilter, const wchar_t *_pExtension); | ||
|
||
std::string UserDocumentsPath(); | ||
|
||
bool CreateDesktopShortcut(const std::string &argumentPath, std::string gameTitle); | ||
|
||
} // namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters