Skip to content
Snippets Groups Projects
Commit a47a547b authored by rswindell's avatar rswindell
Browse files

Use the custom data dir (if one was specified) in the displayed

auto-generated file transfer path (no transfer path specified), in
square brackets.
parent 4429c3ce
No related branches found
No related tags found
No related merge requests found
......@@ -1126,8 +1126,13 @@ void dir_cfg(uint libnum)
else
prep_dir(cfg.ctrl_dir, str, sizeof(str));
} else {
SAFEPRINTF3(str, "[%sdirs/%s%s/]"
,cfg.data_dir
if (!cfg.dir[dirnum[i]]->data_dir[0])
SAFEPRINTF(data_dir, "%sdirs/", cfg.data_dir);
else
SAFECOPY(data_dir, cfg.dir[dirnum[i]]->data_dir);
backslash(data_dir);
SAFEPRINTF3(str, "[%s%s%s/]"
,data_dir
,cfg.lib[cfg.dir[i]->lib]->code_prefix, cfg.dir[i]->code_suffix);
}
strlwr(str);
......
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