Skip to content
Snippets Groups Projects
Commit de4e4f7b authored by BtbN's avatar BtbN Committed by Jim
Browse files

Don't require an existing datadir for modules to load

parent 05af4612
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment