0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Don't require an existing datadir for modules to load

This commit is contained in:
BtbN 2014-08-31 16:28:54 +02:00 committed by jp9000
parent 05af461282
commit de4e4f7b42

View File

@ -193,13 +193,8 @@ static char *make_data_directory(const char *module_name, const char *data_dir)
found = os_file_exists(parsed_data_dir.array);
if (!found && astrcmpi_n(module_name, "lib", 3) == 0) {
if (!found && astrcmpi_n(module_name, "lib", 3) == 0)
make_data_dir(&parsed_data_dir, data_dir, module_name + 3);
found = os_file_exists(parsed_data_dir.array);
}
if (!found)
dstr_free(&parsed_data_dir);
return parsed_data_dir.array;
}