浏览代码

Merge pull request #931 from DDRBoxman/osxplugin

UI: Look for plugins in ~/Library/Application Support/obs-studio/plug…
Jim 8 年之前
父节点
当前提交
d4bd7ea052
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      UI/window-basic-main.cpp

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

@@ -115,6 +115,11 @@ static void AddExtraModulePaths()
 	string path = (char*)base_module_dir;
 	string path = (char*)base_module_dir;
 #if defined(__APPLE__)
 #if defined(__APPLE__)
 	obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str());
 	obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str());
+
+	BPtr<char> config_bin = os_get_config_path_ptr("obs-studio/plugins/%module%/bin");
+	BPtr<char> config_data = os_get_config_path_ptr("obs-studio/plugins/%module%/data");
+	obs_add_module_path(config_bin, config_data);
+
 #elif ARCH_BITS == 64
 #elif ARCH_BITS == 64
 	obs_add_module_path((path + "/bin/64bit").c_str(),
 	obs_add_module_path((path + "/bin/64bit").c_str(),
 			(path + "/data").c_str());
 			(path + "/data").c_str());