Cleanup: replace BLI_join_dirfile with BLI_path_join
These functions are almost identical, the main difference being BLI_join_dirfile didn't trim existing slashes when joining paths however this isn't an important difference that warrants a separate function.
This commit is contained in:
@@ -923,7 +923,7 @@ static void init_internal_icons(void)
|
||||
char iconfilestr[FILE_MAX];
|
||||
|
||||
if (icondir) {
|
||||
BLI_join_dirfile(iconfilestr, sizeof(iconfilestr), icondir, btheme->tui.iconfile);
|
||||
BLI_path_join(iconfilestr, sizeof(iconfilestr), icondir, btheme->tui.iconfile);
|
||||
|
||||
/* if the image is missing bbuf will just be NULL */
|
||||
bbuf = IMB_loadiffname(iconfilestr, IB_rect, NULL);
|
||||
@@ -1047,7 +1047,7 @@ static void init_iconfile_list(struct ListBase *list)
|
||||
/* check to see if the image is the right size, continue if not */
|
||||
/* copying strings here should go ok, assuming that we never get back
|
||||
* a complete path to file longer than 256 chars */
|
||||
BLI_join_dirfile(iconfilestr, sizeof(iconfilestr), icondir, filename);
|
||||
BLI_path_join(iconfilestr, sizeof(iconfilestr), icondir, filename);
|
||||
bbuf = IMB_loadiffname(iconfilestr, IB_rect);
|
||||
|
||||
if (bbuf) {
|
||||
|
||||
@@ -1859,7 +1859,7 @@ static void edittranslation_find_po_file(const char *root,
|
||||
|
||||
/* First, full lang code. */
|
||||
BLI_snprintf(tstr, sizeof(tstr), "%s.po", uilng);
|
||||
BLI_join_dirfile(path, maxlen, root, uilng);
|
||||
BLI_path_join(path, maxlen, root, uilng);
|
||||
BLI_path_append(path, maxlen, tstr);
|
||||
if (BLI_is_file(path)) {
|
||||
return;
|
||||
@@ -1885,7 +1885,7 @@ static void edittranslation_find_po_file(const char *root,
|
||||
BLI_strncpy(tstr + szt, tc, sizeof(tstr) - szt);
|
||||
}
|
||||
|
||||
BLI_join_dirfile(path, maxlen, root, tstr);
|
||||
BLI_path_join(path, maxlen, root, tstr);
|
||||
strcat(tstr, ".po");
|
||||
BLI_path_append(path, maxlen, tstr);
|
||||
if (BLI_is_file(path)) {
|
||||
|
||||
Reference in New Issue
Block a user