From b543f96a3b294a338063c3fec7759c51a75560de Mon Sep 17 00:00:00 2001 From: gxalpha Date: Tue, 16 Aug 2022 02:38:55 +0200 Subject: [PATCH] UI: Only load legacy macOS .so plugins on x86_64 Plugins are expected to be in the .plugin bundle format. We do not want to encourage usage of the old .so format, this is only kept at all for backwards compatibility with existing plugins. --- UI/window-basic-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 0efc83882..5cb702dc7 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -185,6 +185,7 @@ static void AddExtraModulePaths() "obs-studio/plugins/%module%.plugin/Contents/Resources"); obs_add_module_path(config_bin, config_data); +#ifndef __aarch64__ /* Legacy System Library Search Path */ obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str()); @@ -194,6 +195,7 @@ static void AddExtraModulePaths() BPtr config_data_legacy = os_get_config_path_ptr("obs-studio/plugins/%module%/data"); obs_add_module_path(config_bin_legacy, config_data_legacy); +#endif #else #if ARCH_BITS == 64 obs_add_module_path((path + "/bin/64bit").c_str(),