MCPcopy Create free account
hub / github.com/DISTRHO/DPF / fileBrowserSetPathNamespaced

Function fileBrowserSetPathNamespaced

distrho/extra/FileBrowserDialogImpl.cpp:433–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431#ifdef DISTRHO_OS_WASM
432extern "C" {
433EMSCRIPTEN_KEEPALIVE
434void fileBrowserSetPathNamespaced(FileBrowserHandle handle, const char* filename)
435{
436 handle->free();
437
438 if (filename != nullptr && filename[0] != '\0')
439 handle->selectedFile = strdup(filename);
440 else
441 handle->selectedFile = kSelectedFileCancelled;
442}
443}
444#endif
445

Callers

nothing calls this directly

Calls 1

freeMethod · 0.80

Tested by

no test coverage detected