C-string or null
C-string or null
0
["*.jpg", "*.png"], or (sometimes) MIME type ["audio/mp3"], or null
"Text files" or null
Selected file name, null on cancel.
const c_str[] patterns = ["application/x-dsrc"]; c_str filename = tinyfd_saveFileDialog( "Save D source file", "mod.d", cast(int)patterns.length, patterns.ptr, null); if (filename) tinyfd_messageBox("Chosen file is", filename, "ok", "info", 1);