TWINE: allow to faster entering the game

This commit is contained in:
Martin Gerhardy 2021-01-26 18:41:22 +01:00
parent 09341ff55a
commit f08b7cd376

View file

@ -278,7 +278,19 @@ Common::Error TwinEEngine::run() {
_state = EngineState::Menu; _state = EngineState::Menu;
break; break;
case EngineState::Menu: case EngineState::Menu:
#if 0
// this will enter the game and execute the commands in the file "debug"
_gameState->initEngineVars();
_text->textClipSmall();
_text->drawTextBoxBackground = true;
_text->renderTextTriangle = false;
if (!((TwinEConsole*)getDebugger())->exec("debug")) {
debug("Failed to execute debug file before entering the scene");
}
gameEngineLoop();
#else
_state = _menu->run(); _state = _menu->run();
#endif
break; break;
} }
} }