22#if defined OS_MAC || defined OS_IOS
23using PluginIDType =
const char *;
25using PluginIDType = HMODULE;
27using PluginIDType =
void *;
32extern void HostPath(WDL_String& path,
const char* bundleID = 0);
37extern void PluginPath(WDL_String& path, PluginIDType pExtra);
60extern void VST3PresetsPath(WDL_String& path,
const char* mfrName,
const char* pluginName,
bool isSystem =
true);
65extern void INIPath(WDL_String& path,
const char* pluginName);
83extern EResourceLocation
LocateResource(
const char* fileNameOrResID,
const char* type, WDL_String& result,
const char* bundleID,
void* pHInstance,
const char* sharedResourcesSubPath);
88extern const void*
LoadWinResource(
const char* resID,
const char* type,
int& sizeInBytes,
void* pHInstance);
90#if defined OS_MAC || defined OS_IOS
93extern bool AppIsSandboxed();
96extern void AppGroupContainerPath(WDL_String& path,
const char* appGroupID);
99extern void SharedMusicPath(WDL_String& path);
102extern bool IsXPCAuHost();
105extern bool IsOOPAuv3AppExtension();
const void * LoadWinResource(const char *resID, const char *type, int &sizeInBytes, void *pHInstance)
Load a resource from the binary (windows only).
void UserHomePath(WDL_String &path)
EResourceLocation LocateResource(const char *fileNameOrResID, const char *type, WDL_String &result, const char *bundleID, void *pHInstance, const char *sharedResourcesSubPath)
Find the absolute path of a resource based on it's file name (e.g.
void VST3PresetsPath(WDL_String &path, const char *mfrName, const char *pluginName, bool isSystem=true)
void PluginPath(WDL_String &path, PluginIDType pExtra)
Get the path to the plug-in binary.
void DesktopPath(WDL_String &path)
void HostPath(WDL_String &path, const char *bundleID=0)
Get the path to the host binary.
void AppSupportPath(WDL_String &path, bool isSystem=false)
void BundleResourcePath(WDL_String &path, PluginIDType pExtra=0)
Get the path to the plug-in bundle resource path.
void INIPath(WDL_String &path, const char *pluginName)
Get the path to the folder where the App's settings.ini file is stored.
void WebViewCachePath(WDL_String &path)
Get the path to the folder where the Plug-in's ICoreWebView2 userdata folder should be (Windows WebVi...
Utility functions and macros.