Permalink
Browse files

Complete 4ae38a5 and also lower case the directory string we're compa…

…ring against.

Additionally fix small typo.
  • Loading branch information...
1 parent e66b3bd commit ea9247543f3a2d3461b7f9e27b2956d7bcec6af2 @mfn committed Jan 19, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/vfspk3/vfs.cpp
@@ -693,7 +693,7 @@ char* vfsExtractRelativePath_short(const char *in, bool shorten)
#endif // ifdef WIN32
// Create yet another copy, this time with explicitly creating
// a lower case version of the string which is *only* used for
- // comparing them. The returned result is baed only on the
+ // comparing them. The returned result is based only on the
// cleaned up version.
strcpy(l_in_lower, l_in);
strlwr(l_in_lower);
@@ -707,6 +707,7 @@ char* vfsExtractRelativePath_short(const char *in, bool shorten)
{
strcpy(check,g_strDirs[i]);
vfsCleanFileName(check);
+ strlwr(check);
#ifdef DBG_RLTPATH
Sys_Printf("Matching against %s\n", check);
#endif

0 comments on commit ea92475

Please sign in to comment.