- added support for translated techtrees. To produce a default techtree lng file in the proper techtree folder run:

megaglest --translate-techtrees=megapack

where megapack is the name of the techtree
This commit is contained in:
Mark Vejvoda
2013-06-12 22:49:47 +00:00
parent adce76d68f
commit 1eb17e3bb2
5 changed files with 302 additions and 14 deletions

View File

@@ -50,6 +50,8 @@ const char *GAME_ARGS[] = {
"--validate-scenario",
"--validate-tileset",
"--translate-techtrees",
"--list-maps",
"--list-techtrees",
"--list-scenarios",
@@ -123,6 +125,8 @@ enum GAME_ARG_TYPE {
GAME_ARG_VALIDATE_SCENARIO,
GAME_ARG_VALIDATE_TILESET,
GAME_ARG_TRANSLATE_TECHTREES,
GAME_ARG_LIST_MAPS,
GAME_ARG_LIST_TECHTRESS,
GAME_ARG_LIST_SCENARIOS,
@@ -308,6 +312,11 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
printf("\n \t\texample:");
printf("\n %s %s=desert2",extractFileFromDirectoryPath(argv0).c_str(),GAME_ARGS[GAME_ARG_VALIDATE_TILESET]);
printf("\n%s=x",GAME_ARGS[GAME_ARG_TRANSLATE_TECHTREES]);
printf("\n \t\tProduces a deafult lng file for the specified techtree");
printf("\n \t\tto prepare for translation into other languages.");
printf("\n \t\tWhere x is a techtree name");
printf("\n%s=x",GAME_ARGS[GAME_ARG_LIST_MAPS]);
printf("\n \t\tdisplay a list of game content: maps");
printf("\n \t\twhere x is an optional name filter.");