- updated g3dviewer to output file found status on unit autoload

This commit is contained in:
Mark Vejvoda 2012-01-04 19:59:12 +00:00
parent a1a0b9e79c
commit 43c9d44bd6

View File

@ -1095,10 +1095,11 @@ void MainWindow::loadUnit(string path, string skillName) {
string skillParticleFile = "";
string skillParticleProjectileFile = "";
string skillParticleSplashFile = "";
bool fileFound = fileExists(unitXML);
printf("Loading unit from file [%s]\n",unitXML.c_str());
printf("Loading unit from file [%s] fileFound = %d\n",unitXML.c_str(),fileFound);
if(fileExists(unitXML) == true) {
if(fileFound == true) {
XmlTree xmlTree;
xmlTree.load(unitXML,Properties::getTagReplacementValues());
const XmlNode *unitNode= xmlTree.getRootNode();