Add $HOME/.obs-plugins as default module search dir on Linux

master
Azat Khasanshin 2015-04-03 19:20:05 +03:00
parent 453b505637
commit 6b066e9bc6
1 changed files with 15 additions and 0 deletions

View File

@ -51,8 +51,23 @@ static const int module_patterns_size =
void add_default_module_paths(void)
{
char bin[512];
char data[512];
int ret;
for (int i = 0; i < module_patterns_size; i++)
obs_add_module_path(module_bin[i], module_data[i]);
ret = os_get_config_path(bin, sizeof(bin), "obs-plugins/%module%");
if (ret <= 0)
return;
strcpy(data, bin);
strcat(data, "/data");
strcat(bin, "/bin/");
obs_add_module_path(bin, data);
}
/*