multiple file open dialog */ It is the caller's responsibility to free `outPaths` via NFD_PathSet_Free() if this function * returns NFD_OKAY */
| 840 | /* It is the caller's responsibility to free `outPaths` via NFD_PathSet_Free() if this function |
| 841 | * returns NFD_OKAY */ |
| 842 | nfdresult_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 |
no test coverage detected