mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
bugfix for load games when xml is bad
This commit is contained in:
@@ -302,7 +302,7 @@ void MenuStateLoadGame::mouseClick(int x, int y, MouseButton mouseButton){
|
|||||||
if(fileExists(filename) == true) {
|
if(fileExists(filename) == true) {
|
||||||
// Xerces is infinitely slower than rapidxml
|
// Xerces is infinitely slower than rapidxml
|
||||||
xml_engine_parser_type engine_type = XML_RAPIDXML_ENGINE;
|
xml_engine_parser_type engine_type = XML_RAPIDXML_ENGINE;
|
||||||
if(Config::getInstance().getBool("ForceXMLLoadGameUsingXerces") == true) {
|
if(Config::getInstance().getBool("ForceXMLLoadGameUsingXerces","false") == true) {
|
||||||
engine_type = XML_XERCES_ENGINE;
|
engine_type = XML_XERCES_ENGINE;
|
||||||
}
|
}
|
||||||
// XmlTree xmlTree(XML_XERCES_ENGINE);
|
// XmlTree xmlTree(XML_XERCES_ENGINE);
|
||||||
|
Reference in New Issue
Block a user