prepare to add default file name to NFD

for auto-fill file name when saving
This commit is contained in:
tildearrow 2024-09-25 19:03:40 -05:00
parent 8254d6e027
commit 29658ce726
3 changed files with 18 additions and 9 deletions

View file

@ -427,7 +427,8 @@ static nfdresult_t SetDefaultPath( IFileDialog *dialog, const char *defaultPath
nfdresult_t NFD_OpenDialog( const std::vector<std::string>& filterList,
const nfdchar_t *defaultPath,
nfdchar_t **outPath,
nfdselcallback_t selCallback )
nfdselcallback_t selCallback,
const nfdchar_t *defaultFileName )
{
nfdresult_t nfdResult = NFD_ERROR;
NFDWinEvents* winEvents;
@ -535,7 +536,8 @@ end:
nfdresult_t NFD_OpenDialogMultiple( const std::vector<std::string>& filterList,
const nfdchar_t *defaultPath,
nfdpathset_t *outPaths,
nfdselcallback_t selCallback )
nfdselcallback_t selCallback,
const nfdchar_t *defaultFileName )
{
nfdresult_t nfdResult = NFD_ERROR;
NFDWinEvents* winEvents;
@ -647,7 +649,8 @@ end:
nfdresult_t NFD_SaveDialog( const std::vector<std::string>& filterList,
const nfdchar_t *defaultPath,
nfdchar_t **outPath,
nfdselcallback_t selCallback )
nfdselcallback_t selCallback,
const nfdchar_t *defaultFileName )
{
nfdresult_t nfdResult = NFD_ERROR;