UI: Make third-party plugins use program data dirs
Makes it so third-party plugins are stored in system-local specific data directories (except on linux, which will still use user-local data directories for the time being)
This commit is contained in:
parent
b3de68fa22
commit
60c77d41a3
1 changed files with 5 additions and 0 deletions
|
|
@ -91,8 +91,13 @@ static void SetOBSRef(QListWidgetItem *item, T &&val)
|
|||
static void AddExtraModulePaths()
|
||||
{
|
||||
char base_module_dir[512];
|
||||
#if defined(_WIN32) || defined(__APPLE__)
|
||||
int ret = GetProgramDataPath(base_module_dir, sizeof(base_module_dir),
|
||||
"obs-studio/plugins/%module%");
|
||||
#else
|
||||
int ret = GetConfigPath(base_module_dir, sizeof(base_module_dir),
|
||||
"obs-studio/plugins/%module%");
|
||||
#endif
|
||||
|
||||
if (ret <= 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue