iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
IPlugPaths.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers.
5
6 See LICENSE.txt for more info.
7
8 ==============================================================================
9*/
10
11#pragma once
12
18#include "IPlugUtilities.h"
19
20BEGIN_IPLUG_NAMESPACE
21
22#if defined OS_MAC || defined OS_IOS
23using PluginIDType = const char *;
24#elif defined OS_WIN
25using PluginIDType = HMODULE;
26#else
27using PluginIDType = void *;
28#endif
29
32extern void HostPath(WDL_String& path, const char* bundleID = 0);
33
37extern void PluginPath(WDL_String& path, PluginIDType pExtra);
38
44extern void BundleResourcePath(WDL_String& path, PluginIDType pExtra = 0);
45
47extern void DesktopPath(WDL_String& path);
48
50extern void UserHomePath(WDL_String& path);
51
54extern void AppSupportPath(WDL_String& path, bool isSystem = false);
55
60extern void VST3PresetsPath(WDL_String& path, const char* mfrName, const char* pluginName, bool isSystem = true);
61
65extern void INIPath(WDL_String& path, const char* pluginName);
66
68extern void WebViewCachePath(WDL_String& path);
69
83extern EResourceLocation LocateResource(const char* fileNameOrResID, const char* type, WDL_String& result, const char* bundleID, void* pHInstance, const char* sharedResourcesSubPath);
84
88extern const void* LoadWinResource(const char* resID, const char* type, int& sizeInBytes, void* pHInstance);
89
90#if defined OS_MAC || defined OS_IOS
91
93extern bool AppIsSandboxed();
94
96extern void AppGroupContainerPath(WDL_String& path, const char* appGroupID);
97
99extern void SharedMusicPath(WDL_String& path);
100
102extern bool IsXPCAuHost();
103
105extern bool IsOOPAuv3AppExtension();
106
107#endif
108
109END_IPLUG_NAMESPACE
110
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.