461 const char *versionString =
"V4.03 2015_05";
471 std::string sdir_bin = std::string(
szWorkDirWmo) +
"/dir_bin";
473 if (!stat(sdir.c_str(), &status) || !stat(sdir_bin.c_str(), &status))
475 printf(
"Your output directory seems to be polluted, please use an empty directory!\n");
476 printf(
"<press return to exit>");
478 return scanf(
"%c", garbage);
482 printf(
"Extract %s. Beginning work ....\n\n", versionString);
486 #
if defined(__linux__) || defined(__APPLE__)
490 success = (errno == EEXIST);
492 int FirstLocale = -1;
509 printf(
"Detected client build: %u\n\n", build);
516 printf(
"Unable to open storage!\n");
537 printf(
"FATAL ERROR: Map.dbc not found in data file.\n");
549 if (strlen(map_name) >= max_map_name_length)
553 printf(
"FATAL ERROR: Map name too long.\n");
557 strncpy(
map_ids[
x].name, map_name, max_map_name_length);
572 printf(
"ERROR: Extract %s. Work NOT complete.\n Precise vector data=%d.\nPress any key.\n", versionString,
preciseVectorData);
576 printf(
"Extract %s. Work complete. No errors.\n", versionString);
Record getRecord(size_t id)
Definition: dbcfile.cpp:81
uint32 map_count
Definition: vmapexport.cpp:73
char name[64]
Definition: System.cpp:73
bool processArgv(int argc, char **argv, const char *versionString)
Definition: vmapexport.cpp:394
uint32 ReadBuild(int locale)
Definition: vmapexport.cpp:140
bool open()
Definition: dbcfile.cpp:29
char const * getString(size_t field) const
Definition: dbcfile.h:74
uint32 id
Definition: System.cpp:74
Definition: System.cpp:71
HANDLE CascStorage
Definition: vmapexport.cpp:63
bool ExtractWmo()
Definition: vmapexport.cpp:250
bool WINAPI CascCloseStorage(HANDLE hStorage)
Definition: CascOpenStorage.cpp:1133
void ParsMapFiles()
Definition: vmapexport.cpp:362
map_id * map_ids
Definition: vmapexport.cpp:71
uint32_t uint32
Definition: Define.h:150
uint16 * LiqType
Definition: vmapexport.cpp:72
int GetLastError()
Definition: Common.cpp:70
void ReadLiquidTypeTableDBC()
Definition: vmapexport.cpp:228
unsigned int getUInt(size_t field) const
Definition: dbcfile.h:62
size_t getRecordCount() const
Trivial.
Definition: dbcfile.h:134
bool OpenCascStorage(int locale)
Definition: vmapexport.cpp:186
G3D::int16 x
Definition: Vector2int16.h:37
const char * szWorkDirWmo
Definition: vmapexport.cpp:81
#define ERROR_PATH_NOT_FOUND
Definition: vmapexport.cpp:34
bool preciseVectorData
Definition: vmapexport.cpp:76
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083