- added menu option and commandline parameter to disable video playback

This commit is contained in:
Mark Vejvoda
2012-06-09 05:02:01 +00:00
parent 90b0d96b5d
commit cb7bd8ff04
5 changed files with 62 additions and 19 deletions

View File

@@ -3437,6 +3437,14 @@ int glestMain(int argc, char** argv) {
}
}
if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_DISABLE_VIDEOS]) == true) {
VideoPlayer::setDisabled(true);
}
else if(config.getBool("EnableVideos","true") == false) {
VideoPlayer::setDisabled(true);
}
// Set some statics based on ini entries
SystemFlags::ENABLE_THREADED_LOGGING = config.getBool("ThreadedLogging","true");
FontGl::setDefault_fontType(config.getString("DefaultFont",FontGl::getDefault_fontType().c_str()));