Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
-vdmap|Fixed: Logic error when mapping to the base path with "}"
A logic error in the path argument handling resulted in an additional
terminating slash when using the "}" base path mnemonic
  • Loading branch information
danij-deng committed May 6, 2012
1 parent eab9ac6 commit e613f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/fs_main.c
Expand Up @@ -2228,9 +2228,9 @@ void F_AddVirtualDirectoryMapping(const char* source, const char* destination)
Str_Init(&src); Str_Set(&src, source);
Str_Strip(&src);
F_FixSlashes(&src, &src);
F_AppendMissingSlash(&src);
F_ExpandBasePath(&src, &src);
F_PrependWorkPath(&src, &src);
F_AppendMissingSlash(&src);

// Have already mapped this source path?
vdm = findVDMappingForSourcePath(Str_Text(&src));
Expand Down Expand Up @@ -2259,9 +2259,9 @@ void F_AddVirtualDirectoryMapping(const char* source, const char* destination)
Str_Set(&vdm->destination, destination);
Str_Strip(&vdm->destination);
F_FixSlashes(&vdm->destination, &vdm->destination);
F_AppendMissingSlash(&vdm->destination);
F_ExpandBasePath(&vdm->destination, &vdm->destination);
F_PrependWorkPath(&vdm->destination, &vdm->destination);
F_AppendMissingSlash(&vdm->destination);

VERBOSE(Con_Message("Resources in \"%s\" now mapped to \"%s\"\n", F_PrettyPath(Str_Text(&vdm->source)), F_PrettyPath(Str_Text(&vdm->destination))) );
}
Expand Down

0 comments on commit e613f8a

Please sign in to comment.