diff --git a/bin/stuffextract_svn.exe b/bin/stuffextract_svn.exe index ba6e709..579251a 100644 Binary files a/bin/stuffextract_svn.exe and b/bin/stuffextract_svn.exe differ diff --git a/src/shared_VC90.vcproj b/src/shared_VC90.vcproj index 07bf651..0dcc1f1 100644 --- a/src/shared_VC90.vcproj +++ b/src/shared_VC90.vcproj @@ -198,6 +198,14 @@ RelativePath=".\shared\log.h" > + + + + diff --git a/src/tools/stuffextract/StuffExtract.cpp b/src/tools/stuffextract/StuffExtract.cpp index 6a154ee..0cf062a 100644 --- a/src/tools/stuffextract/StuffExtract.cpp +++ b/src/tools/stuffextract/StuffExtract.cpp @@ -712,20 +712,18 @@ void ExtractMapDependencies(void) continue; // prepare lowercased and "underlined" path for file - std::string copy = mpqfn; - std::transform(copy.begin(), copy.end(), copy.begin(), ::tolower); - std::transform(copy.begin(), copy.end(), copy.begin(), replaceSpaces); - if (copy.find_first_of("/\\") != std::string::npos) + std::string copy = NormalizeFilename(mpqfn); + if (copy.find_first_of("/") != std::string::npos) { std::string copy2 = copy; - char* tok = strtok((char*)copy2.c_str(),"/\\"); + char* tok = strtok((char*)copy2.c_str(),"/"); std::string fullpath = pathtex; - while (tok && !strstr(tok, ".")) + while (tok && !strstr(tok, ".blp")) { fullpath += "/"; fullpath += tok; CreateDir(fullpath.c_str()); - tok = strtok(NULL, "/\\"); + tok = strtok(NULL, "/"); } }