+ // Display help
+ printf
+ (
+ "csRadar Copyright (C) 2021 Harry Godden (hgn)\n"
+ "\n"
+ "Usage: ./csRadar map.vmf -g \"/gamedir/gameinfo.txt\" layout cover\n"
+ " VMF file is first, then any other arguments (eg. layout, cover), will specify\n"
+ " visgroups to be rendered into individual files\n"
+ " No visgroups specified will simply draw everything\n"
+ "\n"
+ "Options:\n"
+ " -g <gameinfo.txt path> Required if you are loading models\n"
+ " -r 1024 Output resolution\n"
+ " -o <output> Specify output name/path (no extension, dir must exist)\n"
+ " -e <classname> Same as default arg, but instead filters for entity class\n"
+ " --padding=128 When cropping radar, add padding units to border\n"
+ " --no-txt Don't create matching radar txt\n"
+ " --multi-sample=rgss [ none, 2x, rgss, 8r ]\n"
+ " --extension=TAR Use an extension binary instead\n"
+ " --min=z Miniumum height to render\n"
+ " --max=z Maxiumum height to render\n"
+ "\n"
+ " -v --version Display program version\n"
+ " -h --help Display this help text\n"
+ );
+
+ goto IL_CSR_EXIT;
+ }
+ }
+
+ if( api.num_strings )
+ {
+ if( gameinfo )
+ {
+ fs_set_gameinfo( gameinfo );
+ }
+
+ // Path handling
+ if( !output_set )
+ {
+ strcpy( api.output_path, api.strings[0].str );
+ csr_stripext( api.output_path );