diff options
author | Gacko <gacko28@gmx.de> | 2013-11-02 14:05:17 +0100 |
---|---|---|
committer | Gacko <gacko28@gmx.de> | 2013-11-02 14:07:54 +0100 |
commit | 62c6ae76605ecb54f266f345470ad75d7a681df8 (patch) | |
tree | 5f985df421f2b6d894d5eada288aba571435e005 /src | |
parent | 0ee3093536c321ab85009848d67331f375aac841 (diff) |
Tools: Skip extracting already existing DBC files
Thanks to MacWarrior, closes #11061
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/map_extractor/System.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp index 43b4b57c179..3dd311c2da5 100644 --- a/src/tools/map_extractor/System.cpp +++ b/src/tools/map_extractor/System.cpp @@ -107,6 +107,12 @@ static const char* const langs[] = {"enGB", "enUS", "deDE", "esES", "frFR", "koK void CreateDir( const std::string& Path ) { + if(chdir(Path.c_str()) == 0) + { + chdir("../"); + return; + } + int ret; #ifdef _WIN32 ret = _mkdir( Path.c_str()); @@ -1046,6 +1052,9 @@ void ExtractDBCFiles(int locale, bool basicLocale) { string filename = path; filename += (iter->c_str() + strlen("DBFilesClient\\")); + + if(FileExists(filename.c_str())) + continue; if (ExtractFile(iter->c_str(), filename)) ++count; |