new parameter --server-title

see issue #95
This commit is contained in:
titiger
2016-01-03 16:31:05 +01:00
parent 92f97c13bd
commit f3e96a64c1
6 changed files with 56 additions and 16 deletions

View File

@@ -33,6 +33,7 @@ const char *GAME_ARGS[] = {
"--starthost",
"--headless-server-mode",
"--headless-server-status",
"--server-title",
"--use-ports",
"--load-scenario",
@@ -113,6 +114,7 @@ enum GAME_ARG_TYPE {
GAME_ARG_SERVER,
GAME_ARG_MASTERSERVER_MODE,
GAME_ARG_MASTERSERVER_STATUS,
GAME_ARG_SERVER_TITLE,
GAME_ARG_USE_PORTS,
GAME_ARG_LOADSCENARIO,
@@ -235,7 +237,7 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
printf("\n%s\tCheck the current status of a headless server.",GAME_ARGS[GAME_ARG_MASTERSERVER_STATUS]);
printf("\n%s=x,y,z\t\t\tForce hosted games to listen internally on port",GAME_ARGS[GAME_ARG_USE_PORTS]);
printf("\n%s=x,y,z\t\tForce hosted games to listen internally on port",GAME_ARGS[GAME_ARG_USE_PORTS]);
printf("\n\t\t\t\tx, externally on port y and game status on port z.");
printf("\n \t\tWhere x is the internal port # on the local");
printf("\n \t\t machine to listen for connects");
@@ -247,6 +249,8 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
printf("\n \t\t*NOTE: If enabled the FTP Server port #'s will");
printf("\n \t\t be set to x+1 to x+9");
printf("\n%s=x\t\tSet server title.",GAME_ARGS[GAME_ARG_SERVER_TITLE]);
printf("\n%s=x\t\tAuto load a scenario by scenario name.",GAME_ARGS[GAME_ARG_LOADSCENARIO]);
printf("\n%s=x\t\t\tAuto load a mod by mod pathname.",GAME_ARGS[GAME_ARG_MOD]);