- fixed xml loading via rapidxml for some scenarios that had embeddex xml comments in lua

- added automation abilities for automated testing with automated saved games
This commit is contained in:
Mark Vejvoda
2012-03-17 08:20:17 +00:00
parent 617344c97d
commit 1ac9aa6d3f
18 changed files with 204 additions and 35 deletions

View File

@@ -293,9 +293,15 @@ void MenuStateRoot::render() {
if(program != NULL) program->renderProgramMsgBox();
}
void MenuStateRoot::update(){
if(Config::getInstance().getBool("AutoTest")){
AutoTest::getInstance().updateRoot(program, mainMenu);
void MenuStateRoot::update() {
if(Config::getInstance().getBool("AutoTest")) {
if(AutoTest::getInstance().mustExitGame() == false) {
AutoTest::getInstance().updateRoot(program, mainMenu);
}
else {
program->exit();
}
return;
}
console.update();
}