Helper to get current path of this plugin
| 38 | |
| 39 | // Helper to get current path of this plugin |
| 40 | static 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 |
| 49 | static bool fileExists(const char* const filename) |