Skip to content

Commit

Permalink
Fixed|Windows: -vdmap not working as expected
Browse files Browse the repository at this point in the history
FS1::findAndOpenNativeFile() used NativePath::workPath() to ensure
that the supplied path argument was absolute. However at this point
the path should not be translated to use native separators because
internally the virtual directory mappings use forward slashes.
  • Loading branch information
danij-deng committed Dec 8, 2012
1 parent f7dcd50 commit f803857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/src/filesys/fs_main.cpp
Expand Up @@ -273,7 +273,7 @@ struct FS1::Instance
DENG_ASSERT(!path.isEmpty());

// We must have an absolute path - prepend the CWD if necessary.
path = NativePath::workPath() / path;
path = NativePath::workPath().withSeparators('/') / path;

// Translate mymode to the C-lib's fopen() mode specifiers.
char mode[8] = "";
Expand Down

0 comments on commit f803857

Please sign in to comment.