Tools/MapExtractor: Don't start filenames with a backslash

This commit is contained in:
Jens Bäckman
2014-05-14 19:49:59 +02:00
parent 4136f3c974
commit b75b33699d

View File

@@ -1114,7 +1114,7 @@ void ExtractDBCFiles(int l, bool basicLocale)
}
filename = foundFile.cFileName;
filename = outputPath + filename.substr(filename.rfind('\\'));
filename = outputPath + filename.substr(filename.rfind('\\') + 1);
if (FileExists(filename.c_str()))
continue;
@@ -1161,7 +1161,7 @@ void ExtractDB2Files(int l, bool basicLocale)
}
filename = foundFile.cFileName;
filename = outputPath + filename.substr(filename.rfind('\\'));
filename = outputPath + filename.substr(filename.rfind('\\') + 1);
if (ExtractFile(dbcFile, filename.c_str()))
++count;