This commit is contained in:
doitux
2007-05-05 20:13:24 +00:00
parent 7b6be9d750
commit 649418abe9
+2 -2
View File
@@ -113,7 +113,7 @@ ConfigFile::ConfigFile(bool configFirstStart)
//Prüfen ob Configfile existiert --> sonst anlegen //Prüfen ob Configfile existiert --> sonst anlegen
TiXmlDocument doc(configFileName); TiXmlDocument doc(configFileName);
if(!doc.LoadFile()){ if(!doc.LoadFile()){
CONFIGSTATE = INEXISTENT; CONFIGSTATE = Inexistens;
updateConfig(CONFIGSTATE); updateConfig(CONFIGSTATE);
} }
else { else {
@@ -123,7 +123,7 @@ ConfigFile::ConfigFile(bool configFirstStart)
TiXmlElement* conf = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).FirstChild( "ConfigRevision" ).ToElement(); TiXmlElement* conf = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).FirstChild( "ConfigRevision" ).ToElement();
if ( conf ) { conf->QueryIntAttribute("value", &temp ); } if ( conf ) { conf->QueryIntAttribute("value", &temp ); }
if (temp < configRev) { /*löschen()*/ if (temp < configRev) { /*löschen()*/
CONFIGSTATE = OLD; CONFIGSTATE = Old;
updateConfig(CONFIGSTATE) ; updateConfig(CONFIGSTATE) ;
} }
} }