mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-04-25 00:50:54 +00:00
autoconfiscate fs_basepath
--enable-basepath causes qf to look in ${prefix}/gqmes/quakeforge for the files --with-basepath=path gives you more control
This commit is contained in:
parent
0e44ae7475
commit
e605302b38
3 changed files with 25 additions and 1 deletions
|
@ -9,6 +9,9 @@
|
||||||
/* Define if you want .qz support */
|
/* Define if you want .qz support */
|
||||||
#undef GENERATIONS
|
#undef GENERATIONS
|
||||||
|
|
||||||
|
/* Define this to the default location of the game directories */
|
||||||
|
#undef FS_BASEPATH
|
||||||
|
|
||||||
/* Define this to the subdirectory name of the default game */
|
/* Define this to the subdirectory name of the default game */
|
||||||
#undef GAMENAME
|
#undef GAMENAME
|
||||||
|
|
||||||
|
|
|
@ -920,7 +920,7 @@ COM_InitFilesystem ( void )
|
||||||
int i;
|
int i;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fs_basepath = Cvar_Get ("fs_basepath", ".", CVAR_ROM,
|
fs_basepath = Cvar_Get ("fs_basepath", FS_BASEPATH, CVAR_ROM,
|
||||||
"the location of your game directories");
|
"the location of your game directories");
|
||||||
fs_sharepath = Cvar_Get ("fs_sharepath", fs_basepath->string,
|
fs_sharepath = Cvar_Get ("fs_sharepath", fs_basepath->string,
|
||||||
CVAR_ROM, "read-only game directories");
|
CVAR_ROM, "read-only game directories");
|
||||||
|
|
21
configure.in
21
configure.in
|
@ -123,6 +123,27 @@ else
|
||||||
AC_DEFINE(GAMENAME, "id1")
|
AC_DEFINE(GAMENAME, "id1")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(basepath,
|
||||||
|
[ --enable-basepath use \${prefix}/games/quakeforge instead of . for game
|
||||||
|
data],
|
||||||
|
BASEPATH=$enable_basepath
|
||||||
|
)
|
||||||
|
AC_ARG_WITH(basepath,
|
||||||
|
[ --with-basepath=DIR use basepath instead of . or
|
||||||
|
\${prefix}/games/quakeforge for game data],
|
||||||
|
BASEPATH=$withval)
|
||||||
|
if test "x$BASEPATH" = xyes; then
|
||||||
|
if test "x$prefix" = xNONE; then
|
||||||
|
AC_DEFINE_UNQUOTED(FS_BASEPATH, "${ac_default_prefix}/games/quakeforge")
|
||||||
|
else
|
||||||
|
AC_DEFINE_UNQUOTED(FS_BASEPATH, "${prefix}/games/quakeforge")
|
||||||
|
fi
|
||||||
|
elif test "x$BASEPATH" = xno -o "x$BASEPATH" = x; then
|
||||||
|
AC_DEFINE(FS_BASEPATH, ".")
|
||||||
|
else
|
||||||
|
AC_DEFINE_UNQUOTED(FS_BASEPATH, "$BASEPATH")
|
||||||
|
fi
|
||||||
|
|
||||||
GENERATIONS=no
|
GENERATIONS=no
|
||||||
AC_ARG_ENABLE(generations,
|
AC_ARG_ENABLE(generations,
|
||||||
[ --enable-generations enable .qz support. Requires zlib)],
|
[ --enable-generations enable .qz support. Requires zlib)],
|
||||||
|
|
Loading…
Reference in a new issue