Преглед изворни кода

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.
jp9000 пре 10 година
родитељ
комит
1f1f03d920
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      obs/window-basic-main.cpp

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

@@ -88,7 +88,15 @@ static void AddExtraModulePaths()
 		return;
 		return;
 
 
 	string path = (char*)base_module_dir;
 	string path = (char*)base_module_dir;
+#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());
+#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<QKeySequence> DeleteKeys;
 static QList<QKeySequence> DeleteKeys;