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)
master
jp9000 2016-07-06 01:35:12 -07:00
parent b3de68fa22
commit 60c77d41a3
1 changed files with 5 additions and 0 deletions

View File

@ -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;