MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / NFD_OpenDialogMultipleU8

Function NFD_OpenDialogMultipleU8

extern/nfd/nfd_win.cpp:842–859  ·  view source on GitHub ↗

multiple file open dialog */ It is the caller's responsibility to free `outPaths` via NFD_PathSet_Free() if this function * returns NFD_OKAY */

Source from the content-addressed store, hash-verified

840/* It is the caller's responsibility to free `outPaths` via NFD_PathSet_Free() if this function
841 * returns NFD_OKAY */
842nfdresult_t NFD_OpenDialogMultipleU8(const nfdpathset_t** outPaths,
843 const nfdu8filteritem_t* filterList,
844 nfdfiltersize_t count,
845 const nfdu8char_t* defaultPath) {
846 // populate the real nfdnfilteritem_t
847 FilterItem_Guard filterItemsNGuard;
848 if (!CopyFilterItem(filterList, count, filterItemsNGuard)) {
849 return NFD_ERROR;
850 }
851
852 // convert and normalize the default path, but only if it is not nullptr
853 FreeCheck_Guard<nfdnchar_t> defaultPathNGuard;
854 ConvertU8ToNative(defaultPath, defaultPathNGuard);
855 NormalizePathSeparator(defaultPathNGuard.data);
856
857 // call the native function
858 return NFD_OpenDialogMultipleN(outPaths, filterItemsNGuard.data, count, defaultPathNGuard.data);
859}
860
861/* save dialog */
862/* It is the caller's responsibility to free `outPath` via NFD_FreePathU8() if this function returns

Callers 1

OpenDialogMultipleFunction · 0.85

Calls 4

CopyFilterItemFunction · 0.85
ConvertU8ToNativeFunction · 0.85
NormalizePathSeparatorFunction · 0.85
NFD_OpenDialogMultipleNFunction · 0.70

Tested by

no test coverage detected