Browse Source

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)
jp9000 9 years ago
parent
commit
60c77d41a3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      obs/window-basic-main.cpp

+ 5 - 0
obs/window-basic-main.cpp

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