Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ NFD_OpenDialogMultiple()

static unsafe nfdresult_t nativefiledialog.NFD_OpenDialogMultiple ( string filterList,
string defaultPath,
out nfdpathset_t outPaths )
inlinestatic

Definition at line 91 of file nativefiledialog.cs.

92 {
93 byte* intPtr = Utf8EncodeNullable(filterList);
94 byte* ptr = Utf8EncodeNullable(defaultPath);
95 nfdresult_t result = INTERNAL_NFD_OpenDialogMultiple(intPtr, ptr, out outPaths);
96 Marshal.FreeHGlobal((IntPtr)intPtr);
98 return result;
99 }
static void FreeHGlobal(IntPtr hglobal)
Definition Marshal.cs:1680
static unsafe nfdresult_t INTERNAL_NFD_OpenDialogMultiple(byte *filterList, byte *defaultPath, out nfdpathset_t outPaths)
static unsafe byte * Utf8EncodeNullable(string str)

References System.Runtime.InteropServices.Marshal.FreeHGlobal(), INTERNAL_NFD_OpenDialogMultiple(), and Utf8EncodeNullable().