mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Tools/MapExtractor: Don't start filenames with a backslash
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user