* output md5 sums only if the particular file types are selected for extraction
* collect model names only if models should be extracted
This commit is contained in:
parent
1b8d4def46
commit
85b1e1d3d7
@ -424,6 +424,7 @@ bool ConvertDBC(void)
|
|||||||
std::string value = AutoGetDataString(it,CreatureModelDataFormat,field);
|
std::string value = AutoGetDataString(it,CreatureModelDataFormat,field);
|
||||||
if(value.size()) // only store if not null
|
if(value.size()) // only store if not null
|
||||||
{
|
{
|
||||||
|
if(doModels)
|
||||||
modelNames.insert(value); // we need to extract model later, store it
|
modelNames.insert(value); // we need to extract model later, store it
|
||||||
std::string fn = _PathToFileName(value);
|
std::string fn = _PathToFileName(value);
|
||||||
if(stricmp(fn.c_str()+fn.length()-4, "mdx"))
|
if(stricmp(fn.c_str()+fn.length()-4, "mdx"))
|
||||||
@ -622,6 +623,7 @@ void ExtractMapDependencies(void)
|
|||||||
fh.close();
|
fh.close();
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
if(texNames.size() && doTextures)
|
||||||
OutMD5((char*)pathtex.c_str(),md5Tex);
|
OutMD5((char*)pathtex.c_str(),md5Tex);
|
||||||
|
|
||||||
for(std::set<std::string>::iterator i = modelNames.begin(); i != modelNames.end(); i++)
|
for(std::set<std::string>::iterator i = modelNames.begin(); i != modelNames.end(); i++)
|
||||||
@ -669,6 +671,7 @@ void ExtractMapDependencies(void)
|
|||||||
fh.close();
|
fh.close();
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
if(modelNames.size() && doModels)
|
||||||
OutMD5((char*)pathmodel.c_str(),md5Model);
|
OutMD5((char*)pathmodel.c_str(),md5Model);
|
||||||
|
|
||||||
for(std::set<std::string>::iterator i = wmoNames.begin(); i != wmoNames.end(); i++)
|
for(std::set<std::string>::iterator i = wmoNames.begin(); i != wmoNames.end(); i++)
|
||||||
@ -700,6 +703,7 @@ void ExtractMapDependencies(void)
|
|||||||
fh.close();
|
fh.close();
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
if(wmoNames.size() && doWmos)
|
||||||
OutMD5((char*)pathwmo.c_str(),md5Wmo);
|
OutMD5((char*)pathwmo.c_str(),md5Wmo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user