mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 03:14:00 +02:00
- added new commandline option to override base font size
This commit is contained in:
@@ -61,6 +61,7 @@ const char *GAME_ARGS[] = {
|
||||
//"--windowed",
|
||||
|
||||
"--use-font",
|
||||
"--font-basesize",
|
||||
"--verbose"
|
||||
|
||||
};
|
||||
@@ -105,6 +106,7 @@ enum GAME_ARG_TYPE {
|
||||
GAME_ARG_USE_FULLSCREEN,
|
||||
|
||||
GAME_ARG_USE_FONT,
|
||||
GAME_ARG_FONT_BASESIZE,
|
||||
GAME_ARG_VERBOSE_MODE
|
||||
};
|
||||
|
||||
@@ -236,6 +238,10 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
|
||||
printf("\n \t\tWhere x is the path and name of a font file support by freetype2.");
|
||||
printf("\n \t\texample: %s %s=$APPLICATIONDATAPATH/data/core/fonts/Vera.ttf",argv0,GAME_ARGS[GAME_ARG_USE_FONT]);
|
||||
|
||||
printf("\n%s=x\t\t\toverride the font base size.",GAME_ARGS[GAME_ARG_FONT_BASESIZE]);
|
||||
printf("\n \t\tWhere x is the numeric base font size to use.");
|
||||
printf("\n \t\texample: %s %s=5",argv0,GAME_ARGS[GAME_ARG_FONT_BASESIZE]);
|
||||
|
||||
printf("\n%s\t\t\tdisplays verbose information in the console.",GAME_ARGS[GAME_ARG_VERBOSE_MODE]);
|
||||
|
||||
printf("\n\n");
|
||||
|
Reference in New Issue
Block a user