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

Function SetDefaultName

extern/nfd/nfd_win.cpp:264–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264nfdresult_t SetDefaultName(IFileDialog* dialog, const nfdnchar_t* defaultName) {
265 if (!defaultName || !*defaultName) return NFD_OKAY;
266
267 if (!SUCCEEDED(dialog->SetFileName(defaultName))) {
268 NFDi_SetError("Failed to set default file name.");
269 return NFD_ERROR;
270 }
271
272 return NFD_OKAY;
273}
274
275nfdresult_t AddOptions(IFileDialog* dialog, FILEOPENDIALOGOPTIONS options) {
276 FILEOPENDIALOGOPTIONS existingOptions;

Callers 1

NFD_SaveDialogNFunction · 0.70

Calls 1

NFDi_SetErrorFunction · 0.70

Tested by

no test coverage detected