diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/vmap4_extractor/vmapexport.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/vmap4_extractor/vmapexport.cpp b/src/tools/vmap4_extractor/vmapexport.cpp index 1507225f560..d08c6bb0e79 100644 --- a/src/tools/vmap4_extractor/vmapexport.cpp +++ b/src/tools/vmap4_extractor/vmapexport.cpp @@ -18,12 +18,12 @@ #include "adtfile.h" #include "Banner.h" #include "dbcfile.h" +#include "StringFormat.h" #include "vmapexport.h" #include "wdtfile.h" #include "wmo.h" #include "mpq_libmpq04.h" #include <boost/filesystem/operations.hpp> -#include <fmt/printf.h> #include <fstream> #include <iostream> #include <list> @@ -153,7 +153,7 @@ bool ExtractSingleWmo(std::string& fname) strncpy(temp, fname.c_str(), 1024); temp[fname.length()-4] = 0; - WMOGroup fgroup(fmt::sprintf("%s_%03u.wmo", temp, i)); + WMOGroup fgroup(Trinity::StringFormat("%s_%03u.wmo", temp, i)); if (!fgroup.open(&froot)) { printf("Could not open all Group file for: %s\n", plain_name); @@ -309,16 +309,16 @@ bool fillArchiveNameVector(std::vector<std::string>& pArchiveNames) // now, scan for the patch levels in the core dir printf("Scanning patch levels from data directory.\n"); - if (!scan_patches(fmt::sprintf("%spatch", input_path).c_str(), pArchiveNames)) + if (!scan_patches(Trinity::StringFormat("%spatch", input_path).c_str(), pArchiveNames)) return(false); // now, scan for the patch levels in locale dirs printf("Scanning patch levels from locale directories.\n"); bool foundOne = false; - for (std::string locale : locales) + for (std::string const& locale : locales) { printf("Locale: %s\n", locale.c_str()); - if(scan_patches(fmt::sprintf("%s%s/patch-%s", input_path, locale.c_str(), locale.c_str()).c_str(), pArchiveNames)) + if(scan_patches(Trinity::StringFormat("%s%s/patch-%s", input_path, locale.c_str(), locale.c_str()).c_str(), pArchiveNames)) foundOne = true; } |