diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 1bad5943b..866f0edb4 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -57,6 +57,16 @@ Q_DECLARE_METATYPE(OBSScene); Q_DECLARE_METATYPE(OBSSceneItem); Q_DECLARE_METATYPE(order_movement); +static void AddExtraModulePaths() +{ + BPtr base_module_dir = os_get_config_path("plugins/%module%"); + if (!base_module_dir) + return; + + string path = (char*)base_module_dir; + obs_add_module_path((path + "/bin").c_str(), (path + "/data").c_str()); +} + OBSBasic::OBSBasic(QWidget *parent) : OBSMainWindow (parent), ui (new Ui::OBSBasic) @@ -534,6 +544,7 @@ void OBSBasic::OBSInit() InitOBSCallbacks(); + AddExtraModulePaths(); obs_load_all_modules(); if (!InitOutputs())