浏览代码

UI: Don't load macOS plugin bundles from global library

Plugins are supposed to go into the user application support directory,
so we shouldn't load them from the system one.
gxalpha 3 年之前
父节点
当前提交
4998fddf6b
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      UI/window-basic-main.cpp

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

@@ -178,10 +178,6 @@ static void AddExtraModulePaths()
 
 
 	string path = base_module_dir;
 	string path = base_module_dir;
 #if defined(__APPLE__)
 #if defined(__APPLE__)
-	/* System Library Search Path */
-	obs_add_module_path((path + ".plugin/Contents/MacOS").c_str(),
-			    (path + ".plugin/Contents/Resources").c_str());
-
 	/* User Application Support Search Path */
 	/* User Application Support Search Path */
 	BPtr<char> config_bin = os_get_config_path_ptr(
 	BPtr<char> config_bin = os_get_config_path_ptr(
 		"obs-studio/plugins/%module%.plugin/Contents/MacOS");
 		"obs-studio/plugins/%module%.plugin/Contents/MacOS");