From 1f1f03d92004045568de023fbd7308f16a28e50d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 14 Jul 2015 18:05:26 -0700 Subject: [PATCH] UI: Make plugin search path use arch. bits in name If on windows/linux, make the plugin search path also include the architecture bits for its binary search path. --- obs/window-basic-main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index bd2914e06..b4bfbe674 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -88,7 +88,15 @@ static void AddExtraModulePaths() return; string path = (char*)base_module_dir; +#if defined(__APPLE__) obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str()); +#elif ARCH_BITS == 64 + obs_add_module_path((path + "/bin/64bit").c_str(), + (path + "/data").c_str()); +#else + obs_add_module_path((path + "/bin/32bit").c_str(), + (path + "/data").c_str()); +#endif } static QList DeleteKeys;