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

Function AddOptions

extern/nfd/nfd_win.cpp:275–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275nfdresult_t AddOptions(IFileDialog* dialog, FILEOPENDIALOGOPTIONS options) {
276 FILEOPENDIALOGOPTIONS existingOptions;
277 if (!SUCCEEDED(dialog->GetOptions(&existingOptions))) {
278 NFDi_SetError("Failed to get options.");
279 return NFD_ERROR;
280 }
281 if (!SUCCEEDED(dialog->SetOptions(existingOptions | options))) {
282 NFDi_SetError("Failed to set options.");
283 return NFD_ERROR;
284 }
285 return NFD_OKAY;
286}
287} // namespace
288
289const char* NFD_GetError(void) {

Callers 4

NFD_OpenDialogNFunction · 0.85
NFD_OpenDialogMultipleNFunction · 0.85
NFD_SaveDialogNFunction · 0.85
NFD_PickFolderNFunction · 0.85

Calls 1

NFDi_SetErrorFunction · 0.70

Tested by

no test coverage detected