22 #if defined OS_MAC || defined OS_IOS 23 using PluginIDType =
const char *;
25 using PluginIDType = HMODULE;
27 using PluginIDType =
void *;
33 void UTF8ToUTF16(
wchar_t* utf16Str,
const char* utf8Str,
int maxLen);
34 void UTF16ToUTF8(WDL_String& utf8Str,
const wchar_t* utf16Str);
39 extern void HostPath(WDL_String& path,
const char* bundleID = 0);
44 extern void PluginPath(WDL_String& path, PluginIDType pExtra);
61 extern void AppSupportPath(WDL_String& path,
bool isSystem =
false);
70 extern void VST3PresetsPath(WDL_String& path,
const char* mfrName,
const char* pluginName,
bool isSystem =
true);
75 extern void INIPath(WDL_String& path,
const char* pluginName);
90 extern EResourceLocation
LocateResource(
const char* fileNameOrResID,
const char* type, WDL_String& result,
const char* bundleID,
void* pHInstance,
const char* sharedResourcesSubPath);
95 extern const void*
LoadWinResource(
const char* resID,
const char* type,
int& sizeInBytes,
void* pHInstance);
101 extern bool IsAuv3AppExtension();
Utility functions and macros.
const void * LoadWinResource(const char *resID, const char *type, int &sizeInBytes, void *pHInstance)
Load a resource from the binary (windows only).
void BundleResourcePath(WDL_String &path, PluginIDType pExtra=0)
Get the path to the plug-in bundle resource path.
void SandboxSafeAppSupportPath(WDL_String &path, const char *appGroupID="")
void AppSupportPath(WDL_String &path, bool isSystem=false)
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 INIPath(WDL_String &path, const char *pluginName)
Get the path to the folder where the App's settings.ini file is stored.
void VST3PresetsPath(WDL_String &path, const char *mfrName, const char *pluginName, bool isSystem=true)
void HostPath(WDL_String &path, const char *bundleID=0)
Get the path to the host binary.
void PluginPath(WDL_String &path, PluginIDType pExtra)
Get the path to the plug-in binary.
void DesktopPath(WDL_String &path)