Skip to content

Commit

Permalink
File Sys|Fixed: Console commands "dir" and "ls" did not fix slashes
Browse files Browse the repository at this point in the history
When entering paths from the console we should allow the user to use
both forward and backward slashes as path separators, on any platform.
  • Loading branch information
danij-deng committed May 6, 2012
1 parent e613f8a commit 0f40b90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/engine/portable/src/fs_main.c
Expand Up @@ -2315,6 +2315,7 @@ static void printVFDirectory(const ddstring_t* path)

Str_Init(&dir); Str_Set(&dir, Str_Text(path));
Str_Strip(&dir);
F_FixSlashes(&dir, &dir);
// Make sure it ends in a directory separator character.
F_AppendMissingSlash(&dir);
if(!F_ExpandBasePath(&dir, &dir))
Expand Down

0 comments on commit 0f40b90

Please sign in to comment.