mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 13:37:02 +00:00
nuke tabs
This commit is contained in:
parent
0bf26d3e8d
commit
a626464ea7
16 changed files with 1431 additions and 1431 deletions
|
|
@ -391,13 +391,13 @@ void setVMapMagicVersion(int iCoreNumber, char* magic)
|
|||
bool CreateDir(const std::string& sPath)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if (_mkdir(sPath.c_str()) == 0)
|
||||
return 1;
|
||||
if (_mkdir(sPath.c_str()) == 0)
|
||||
return 1;
|
||||
#else
|
||||
if (mkdir(sPath.c_str(), 0777) == 0)
|
||||
return 1;
|
||||
if (mkdir(sPath.c_str(), 0777) == 0)
|
||||
return 1;
|
||||
#endif
|
||||
return 0; // failed to create the directory
|
||||
return 0; // failed to create the directory
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -517,8 +517,8 @@ bool shouldSkipMap(int mapID,bool m_skipContinents, bool m_skipJunkMaps, bool m_
|
|||
case 605: // development_nonweighted.wdt - (WOTLK / CATA / MOP)
|
||||
case 606: // QA_DVD.wdt - (WOTLK / CATA / MOP)
|
||||
case 627: // unused.wdt - (CATA / MOP)
|
||||
case 930: // (UNUSED) Scenario: Alcaz Island - (MOP)
|
||||
case 995: // The Depths [UNUSED] - (MOP)
|
||||
case 930: // (UNUSED) Scenario: Alcaz Island - (MOP)
|
||||
case 995: // The Depths [UNUSED] - (MOP)
|
||||
case 1010: // MistsCTF3
|
||||
case 1014: // (UNUSED) Peak of Serenity Scenario - (MOP)
|
||||
case 1028: // (UNUSED) Scenario: Mogu Ruins - (MOP)
|
||||
|
|
@ -558,7 +558,7 @@ bool shouldSkipMap(int mapID,bool m_skipContinents, bool m_skipJunkMaps, bool m_
|
|||
case 728: // BfG - (CATA / MOP)
|
||||
case 761: // BfG2 - (CATA / MOP)
|
||||
case 968: // EotS2 - (CATA / MOP)
|
||||
case 998: // VOP - (MOP)
|
||||
case 998: // VOP - (MOP)
|
||||
case 1010: // CTF3 - (MOP)
|
||||
case 1101: // DOTA - (MOP)
|
||||
case 1105: // GR - (MOP)
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ int main(int argc, char* argv[])
|
|||
|
||||
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
|
||||
|
||||
std::cout << "Create TileAssembler " << std::endl;
|
||||
std::cout << "Create TileAssembler " << std::endl;
|
||||
|
||||
VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
|
||||
VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
|
||||
|
||||
std::cout << "Convert to World2 " << std::endl;
|
||||
std::cout << "Convert to World2 " << std::endl;
|
||||
|
||||
if (!ta->convertWorld2())
|
||||
{
|
||||
|
|
@ -54,7 +54,7 @@ int main(int argc, char* argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
std::cout << "THE END!!! " << std::endl;
|
||||
std::cout << "THE END!!! " << std::endl;
|
||||
|
||||
delete ta;
|
||||
std::cout << "Ok, all done" << std::endl;
|
||||
|
|
|
|||
|
|
@ -557,8 +557,8 @@ bool processArgv(int argc, char** argv)
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
bool bCreatedVmapsFolder = false;
|
||||
bool bExtractedWMOfiles = false;
|
||||
bool bCreatedVmapsFolder = false;
|
||||
bool bExtractedWMOfiles = false;
|
||||
std::string outDir = std::string(output_path) + "/vmaps";
|
||||
|
||||
// Use command line arguments, when some
|
||||
|
|
@ -598,9 +598,9 @@ int main(int argc, char** argv)
|
|||
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
// Create the working and ouput directories
|
||||
CreateDir(std::string(szWorkDirWmo));
|
||||
bCreatedVmapsFolder = CreateDir(outDir);
|
||||
bCreatedVmapsFolder = CreateDir(outDir);
|
||||
|
||||
printf("Loading common MPQ files\n");
|
||||
printf("Loading common MPQ files\n");
|
||||
LoadCommonMPQFiles(CONF_TargetBuild);
|
||||
|
||||
int FirstLocale = -1;
|
||||
|
|
@ -621,15 +621,15 @@ int main(int argc, char** argv)
|
|||
ReadLiquidTypeTableDBC();
|
||||
|
||||
// extract data
|
||||
if (bCreatedVmapsFolder)
|
||||
{
|
||||
printf("Extracting WMO file\n");
|
||||
bExtractedWMOfiles = ExtractWmo();
|
||||
}
|
||||
if (bCreatedVmapsFolder)
|
||||
{
|
||||
printf("Extracting WMO file\n");
|
||||
bExtractedWMOfiles = ExtractWmo();
|
||||
}
|
||||
|
||||
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
//map.dbc
|
||||
if (bExtractedWMOfiles)
|
||||
if (bExtractedWMOfiles)
|
||||
{
|
||||
DBCFile* dbc = new DBCFile(LocaleMpq, "DBFilesClient\\Map.dbc");
|
||||
if (!dbc->open())
|
||||
|
|
@ -660,17 +660,17 @@ int main(int argc, char** argv)
|
|||
SFileCloseArchive(WorldMpq);
|
||||
|
||||
printf("\n");
|
||||
if (!bExtractedWMOfiles)
|
||||
if (!bExtractedWMOfiles)
|
||||
{
|
||||
printf("ERROR: Extract for %s. Work NOT complete.\n Precise vector data=%d.\nPress any key.\n", szRawVMAPMagic, preciseVectorData);
|
||||
getchar();
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("Extract for %s. Work complete. ", szRawVMAPMagic);
|
||||
if (!bCreatedVmapsFolder || !bExtractedWMOfiles)
|
||||
printf("There were errors.\n");
|
||||
else
|
||||
printf("Extract for %s. Work complete. ", szRawVMAPMagic);
|
||||
if (!bCreatedVmapsFolder || !bExtractedWMOfiles)
|
||||
printf("There were errors.\n");
|
||||
else
|
||||
printf("No errors.\n");
|
||||
|
||||
delete [] LiqType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue