aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-04-25 12:33:33 +0200
committerShauren <shauren.trinity@gmail.com>2021-04-25 12:33:33 +0200
commite5ef64963415498bdc6b35e8a996abffb1255fff (patch)
treeb64ad938a1ffdd62d943b981308ed6a71e9c602c /src
parentdb18228174a9431fd540b910cb9a679d28c167d5 (diff)
Tools/vmap_extractor: Unify version printed to console with shared vmap version definition
Diffstat (limited to 'src')
-rw-r--r--src/tools/vmap4_extractor/vmapexport.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/tools/vmap4_extractor/vmapexport.cpp b/src/tools/vmap4_extractor/vmapexport.cpp
index 72c358c9377..69abfffedcf 100644
--- a/src/tools/vmap4_extractor/vmapexport.cpp
+++ b/src/tools/vmap4_extractor/vmapexport.cpp
@@ -22,6 +22,7 @@
#include "DB2CascFileSource.h"
#include "ExtractorDB2LoadInfo.h"
#include "StringFormat.h"
+#include "VMapDefinitions.h"
#include "vmapexport.h"
#include "wdtfile.h"
#include "wmo.h"
@@ -388,24 +389,14 @@ static bool RetardCheck()
return true;
}
-//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-// Main
-//
-// The program must be run with two command line arguments
-//
-// Arg1 - The source MPQ name (for testing reading and file find)
-// Arg2 - Listfile name
-//
-
int main(int argc, char ** argv)
{
Trinity::Banner::Show("VMAP data extractor", [](char const* text) { printf("%s\n", text); }, nullptr);
bool success = true;
- const char *versionString = "V4.06 2018_02";
// Use command line arguments, when some
- if (!processArgv(argc, argv, versionString))
+ if (!processArgv(argc, argv, VMAP::VMAP_MAGIC))
return 1;
if (!RetardCheck())
@@ -426,7 +417,7 @@ int main(int argc, char ** argv)
}
}
- printf("Extract %s. Beginning work ....\n", versionString);
+ printf("Extract %s. Beginning work ....\n", VMAP::VMAP_MAGIC);
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// Create the working directory
if (mkdir(szWorkDirWmo
@@ -543,10 +534,10 @@ int main(int argc, char ** argv)
printf("\n");
if (!success)
{
- printf("ERROR: Extract %s. Work NOT complete.\n Precise vector data=%d.\nPress any key.\n", versionString, preciseVectorData);
+ printf("ERROR: Extract %s. Work NOT complete.\n Precise vector data=%d.\nPress any key.\n", VMAP::VMAP_MAGIC, preciseVectorData);
getchar();
}
- printf("Extract %s. Work complete. No errors.\n", versionString);
+ printf("Extract %s. Work complete. No errors.\n", VMAP::VMAP_MAGIC);
return 0;
}