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

Function getCurrentPluginFilename

examples/ExternalUI/ExternalExampleUI.cpp:40–46  ·  view source on GitHub ↗

Helper to get current path of this plugin

Source from the content-addressed store, hash-verified

38
39// Helper to get current path of this plugin
40static const char* getCurrentPluginFilename()
41{
42 Dl_info exeInfo;
43 void* localSymbol = (void*)kFifoFilename;
44 dladdr(localSymbol, &exeInfo);
45 return exeInfo.dli_fname;
46}
47
48// Helper to check if a file exists
49static bool fileExists(const char* const filename)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected