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

◆ NFD_PickFolder()

static unsafe nfdresult_t nativefiledialog.NFD_PickFolder ( string defaultPath,
out string outPath )
inlinestatic

Definition at line 119 of file nativefiledialog.cs.

120 {
121 byte* intPtr = Utf8EncodeNullable(defaultPath);
122 IntPtr outPath2;
123 nfdresult_t result = INTERNAL_NFD_PickFolder(intPtr, out outPath2);
124 Marshal.FreeHGlobal((IntPtr)intPtr);
125 outPath = UTF8_ToManaged(outPath2, freePtr: true);
126 return result;
127 }
static void FreeHGlobal(IntPtr hglobal)
Definition Marshal.cs:1680
static unsafe nfdresult_t INTERNAL_NFD_PickFolder(byte *defaultPath, out IntPtr outPath)
static unsafe string UTF8_ToManaged(IntPtr s, bool freePtr=false)
static unsafe byte * Utf8EncodeNullable(string str)

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