mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Merge pull request #12064 from czw/catafix
[4.3.4] Fix bogus filenames generated by the map extractor
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