{"-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"},
+ {"-fs_nomagicpath", "Do not try to guess base path magically"},
{"-fs_nohomepath", "Do not load home path in VFS"},
{"-fs_pakpath <path>", "Specify a package directory (can be used more than once to look in multiple paths)"},
{"-game <gamename>", "Load settings for the given game (default: quake3)"},
int noBasePath = 0;
int noHomePath = 0;
+ int noMagicPath = 0;
/* note it */
Sys_FPrintf( SYS_VRB, "--- InitPaths ---\n" );
argv[ i ] = NULL;
}
+ /* -fs_nomagicpath */
+ else if ( strcmp( argv[ i ], "-fs_nomagicpath") == 0) {
+ noMagicPath = 1;
+ argv[ i ] = NULL;
+ }
+
/* -fs_basepath */
else if ( strcmp( argv[ i ], "-fs_basepath" ) == 0 ) {
if ( ++i >= *argc ) {
AddPakPath( argv[ i ] );
argv[ i ] = NULL;
}
-
}
/* remove processed arguments */
/* add standard game path */
AddGamePath( game->gamePath );
- /* if there is no base path set, figure it out */
- if ( numBasePaths == 0 && noBasePath == 0 ) {
+ /* if there is no base path set, figure it out unless fs_nomagicpath is set */
+ if ( numBasePaths == 0 && noBasePath == 0 && noMagicPath == 0 ) {
/* this is another crappy replacement for SetQdirFromPath() */
len2 = strlen( game->magic );
for ( i = 0; i < *argc && numBasePaths == 0; i++ )