diff --git a/extern/nfd-modified/src/include/nfd.h b/extern/nfd-modified/src/include/nfd.h index 7f630167d..24e4a5754 100644 --- a/extern/nfd-modified/src/include/nfd.h +++ b/extern/nfd-modified/src/include/nfd.h @@ -40,19 +40,22 @@ typedef enum { nfdresult_t NFD_OpenDialog( const std::vector& filterList, const nfdchar_t *defaultPath, nfdchar_t **outPath, - nfdselcallback_t selCallback = NULL ); + nfdselcallback_t selCallback = NULL, + const nfdchar_t *defaultFileName = NULL ); /* multiple file open dialog */ nfdresult_t NFD_OpenDialogMultiple( const std::vector& filterList, const nfdchar_t *defaultPath, nfdpathset_t *outPaths, - nfdselcallback_t selCallback = NULL ); + nfdselcallback_t selCallback = NULL, + const nfdchar_t *defaultFileName = NULL ); /* save dialog */ nfdresult_t NFD_SaveDialog( const std::vector& filterList, const nfdchar_t *defaultPath, nfdchar_t **outPath, - nfdselcallback_t selCallback = NULL ); + nfdselcallback_t selCallback = NULL, + const nfdchar_t *defaultFileName = NULL ); /* select folder dialog */ diff --git a/extern/nfd-modified/src/nfd_cocoa.mm b/extern/nfd-modified/src/nfd_cocoa.mm index 204d79f88..036d383fb 100644 --- a/extern/nfd-modified/src/nfd_cocoa.mm +++ b/extern/nfd-modified/src/nfd_cocoa.mm @@ -134,7 +134,8 @@ static nfdresult_t AllocPathSet( NSArray *urls, nfdpathset_t *pathset ) nfdresult_t NFD_OpenDialog( const std::vector& filterList, const nfdchar_t *defaultPath, nfdchar_t **outPath, - nfdselcallback_t selCallback ) + nfdselcallback_t selCallback, + const nfdchar_t *defaultFileName ) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -177,7 +178,8 @@ nfdresult_t NFD_OpenDialog( const std::vector& filterList, nfdresult_t NFD_OpenDialogMultiple( const std::vector& filterList, const nfdchar_t *defaultPath, nfdpathset_t *outPaths, - nfdselcallback_t selCallback ) + nfdselcallback_t selCallback, + const nfdchar_t *defaultFileName ) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSWindow *keyWindow = [[NSApplication sharedApplication] keyWindow]; @@ -222,7 +224,8 @@ nfdresult_t NFD_OpenDialogMultiple( const std::vector& filterList, nfdresult_t NFD_SaveDialog( const std::vector& filterList, const nfdchar_t *defaultPath, nfdchar_t **outPath, - nfdselcallback_t selCallback ) + nfdselcallback_t selCallback, + const nfdchar_t *defaultFileName ) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSWindow *keyWindow = [[NSApplication sharedApplication] keyWindow]; diff --git a/extern/nfd-modified/src/nfd_win.cpp b/extern/nfd-modified/src/nfd_win.cpp index 5bd95013b..0cb614b20 100644 --- a/extern/nfd-modified/src/nfd_win.cpp +++ b/extern/nfd-modified/src/nfd_win.cpp @@ -427,7 +427,8 @@ static nfdresult_t SetDefaultPath( IFileDialog *dialog, const char *defaultPath nfdresult_t NFD_OpenDialog( const std::vector& 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& 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& filterList, const nfdchar_t *defaultPath, nfdchar_t **outPath, - nfdselcallback_t selCallback ) + nfdselcallback_t selCallback, + const nfdchar_t *defaultFileName ) { nfdresult_t nfdResult = NFD_ERROR;