aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-08-20 23:21:45 +0200
committerTreeston <treeston.mmoc@gmail.com>2020-08-20 23:21:45 +0200
commit8ab9a29af307f542000cad70fcd73e59a4b0ac27 (patch)
treea45a46b0b7788e9e682752302dd3b5bfa899591d /src
parent8ebcc0b08671029a1831db93c520387598125e09 (diff)
Tools/VMapExtractor: Make Shauren happy, fmt::sprintf -> Trinity::StringFormat
Diffstat (limited to 'src')
-rw-r--r--src/tools/vmap4_extractor/vmapexport.cpp10
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;
}