Skip to content
Snippets Groups Projects
Commit d787ad1a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Support dir/subdir syntax in DIRS.TXT (CD-ROM) import

getfname() just returns the last path element, so can't use that here.
parent c1847394
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6400 passed
......@@ -1031,7 +1031,7 @@ void xfer_cfg()
snprintf(path, sizeof path, "%s/%s", cfg.lib[libnum]->parent_path, tmpdir.path);
if(getdircase(path))
SAFECOPY(tmpdir.path, getfname(path));
SAFECOPY(tmpdir.path, path + strlen(cfg.lib[libnum]->parent_path) + 1);
int dupes = 0;
int attempts = 0; // attempts to generate a unique internal code
......
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