add alias for -basedir for consistency with the engine parameters
This commit is contained in:
parent
2d0fac5f98
commit
da7389d9a2
3 changed files with 4 additions and 4 deletions
|
@ -25,9 +25,9 @@ BSP: `./vmap [options] dm_foobar`
|
|||
VIS: `./vmap [options] -vis dm_foobar`
|
||||
LIGHT: `./vmap [options] -light dm_foobar`
|
||||
|
||||
You want to pass `-fs_basepath /path/to/game/root` and `-game` arguments to specify where to read textures from. If you wanted to, for example, compile a map included within Nuclide's 'base' directory you'd end up with a command-line like this:
|
||||
You want to pass `-basedir /path/to/game/root` and `-game` arguments to specify where to read textures from. If you wanted to, for example, compile a map included within Nuclide's 'base' directory you'd end up with a command-line like this:
|
||||
|
||||
`./vmap -fs_basepath /home/user/nuclide-sdk/ -game base test_sun`
|
||||
`./vmap -basedir "/home/user/nuclide-sdk/" -game "base" test_sun`
|
||||
|
||||
## Compiling
|
||||
To compile on a standard GNU/Linux system:
|
||||
|
|
|
@ -322,7 +322,7 @@ void HelpCommon()
|
|||
{"-game <gamename>", "Sets a different game directory name (can be used more than once)"},
|
||||
{"-connect <address>", "Talk to a WorldSpawn instance using a specific XML based protocol"},
|
||||
{"-force", "Allow reading some broken/unsupported BSP files e.g. when decompiling, may also crash"},
|
||||
{"-fs_basepath <path>", "Sets the given path as main directory of the game (can be used more than once to look in multiple paths)"},
|
||||
{"-basedir <path>", "Sets the given path as main directory of the game (can be used more than once to look in multiple paths)"},
|
||||
{"-fs_homebase <dir>", "Specifies where the user home directory name is on Linux (default for Q3A: .q3a)"},
|
||||
{"-fs_homepath <path>", "Sets the given path as home directory name"},
|
||||
{"-fs_nobasepath", "Do not load base paths in VFS, imply -fs_nomagicpath"},
|
||||
|
|
|
@ -472,7 +472,7 @@ void InitPaths( int *argc, char **argv ){
|
|||
}
|
||||
|
||||
/* -fs_basepath */
|
||||
else if ( strcmp( argv[ i ], "-fs_basepath" ) == 0 ) {
|
||||
else if ( strcmp( argv[ i ], "-fs_basepath" ) == 0 || strcmp( argv[ i ], "-basedir" ) == 0 ) {
|
||||
if ( ++i >= *argc ) {
|
||||
Error( "Out of arguments: No path specified after %s.", argv[ i - 1 ] );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue