mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- updated g3dviewer to output file found status on unit autoload
This commit is contained in:
parent
a1a0b9e79c
commit
43c9d44bd6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user