Skip to content

Commit

Permalink
UI: Make third-party plugins use program data dirs
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jp9000 committed Jul 6, 2016
1 parent b3de68f commit 60c77d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions obs/window-basic-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 60c77d4

Please # to comment.