mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 11:51:17 +00:00
./configure --enable-newstyle now actually does something. It changes the
default game name from "id1" to "base". This allows you to have full and shareware version's of Id's pak's installed, as well as other full TC's you want.. You may want to make base a symlink to id1 for now since you currently can't have multiple -game's, that's my next fix.
This commit is contained in:
parent
e75779c171
commit
3f74fe38b8
7 changed files with 14 additions and 22 deletions
11
acconfig.h
11
acconfig.h
|
@ -5,6 +5,9 @@
|
|||
/* Define if you want to use QF-style defaults instead of Id-style */
|
||||
#undef NEWSTYLE
|
||||
|
||||
/* Define this to the subdirectory name of the default game */
|
||||
#undef GAMENAME
|
||||
|
||||
/* Define if you have the XFree86 DGA extension */
|
||||
#undef HAS_DGA
|
||||
|
||||
|
@ -32,11 +35,3 @@
|
|||
/* Define this to use experimental code */
|
||||
#undef _EXPERIMENTAL_
|
||||
|
||||
#if defined(X11)
|
||||
# define OUTPUT_STR "X11"
|
||||
#elif defined(GGI)
|
||||
# define OUTPUT_STR "GGI"
|
||||
#else
|
||||
# define OUTPUT_STR "Unknown"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -68,6 +68,9 @@ AC_ARG_ENABLE(newstyle,
|
|||
)
|
||||
if test "x$NEWSTYLE" = xyes; then
|
||||
AC_DEFINE(NEWSTYLE)
|
||||
AC_DEFINE(GAMENAME, "base")
|
||||
else
|
||||
AC_DEFINE(GAMENAME, "id1")
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(release,
|
||||
|
|
|
@ -1711,7 +1711,7 @@ void COM_Gamedir (char *dir)
|
|||
//
|
||||
Cache_Flush ();
|
||||
|
||||
if (!strcmp(dir,"id1") || !strcmp(dir, "qw"))
|
||||
if (!strcmp(dir, GAMENAME) || !strcmp(dir, "qw"))
|
||||
return;
|
||||
|
||||
snprintf(com_gamedir, sizeof(com_gamedir), "%s/%s", com_basedir, dir);
|
||||
|
@ -1751,7 +1751,7 @@ void COM_InitFilesystem (void)
|
|||
|
||||
//
|
||||
// -basedir <path>
|
||||
// Overrides the system supplied base directory (under id1)
|
||||
// Overrides the system supplied base directory
|
||||
//
|
||||
i = COM_CheckParm ("-basedir");
|
||||
if (i && i < com_argc-1)
|
||||
|
@ -1760,9 +1760,9 @@ void COM_InitFilesystem (void)
|
|||
strcpy (com_basedir, host_parms.basedir);
|
||||
|
||||
//
|
||||
// start up with id1 by default
|
||||
// start up with GAMENAME by default
|
||||
//
|
||||
COM_AddGameDirectory (va("%s/id1", com_basedir) );
|
||||
COM_AddGameDirectory (va("%s" GAMENAME, com_basedir) );
|
||||
COM_AddGameDirectory (va("%s/qw", com_basedir) );
|
||||
|
||||
// any set gamedirs will be freed up to here
|
||||
|
|
|
@ -1402,6 +1402,7 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
|
||||
host_client->msec_pool += idealmsec - oldmsec;
|
||||
|
||||
#if 0
|
||||
if (abs(host_client->msec_pool) > POOLMAX)
|
||||
{
|
||||
printf("tmp_t: %f, realt: %f, frame_t: %f, loss: %d, total: %d\n",
|
||||
|
@ -1423,7 +1424,8 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
printf("oldmsec: %d, msec: %d, pool: %d\n", oldmsec,
|
||||
idealmsec, host_client->msec_pool);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
if (abs(host_client->msec_pool) > POOLMAX)
|
||||
{
|
||||
/* if our pool exceeds POOLMAX msec, empty it into msec. This
|
||||
|
|
|
@ -154,12 +154,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
parms.basedir = ".";
|
||||
|
||||
/*
|
||||
if (Sys_FileTime ("id1/pak0.pak") != -1)
|
||||
else
|
||||
parms.basedir = "/raid/quake/v2";
|
||||
*/
|
||||
|
||||
SV_Init (&parms);
|
||||
|
||||
// run one frame immediately for first heartbeat
|
||||
|
|
|
@ -1692,7 +1692,7 @@ void COM_InitFilesystem (void)
|
|||
com_cachedir[0] = 0;
|
||||
|
||||
//
|
||||
// start up with GAMENAME by default (id1)
|
||||
// start up with GAMENAME by default
|
||||
//
|
||||
COM_AddGameDirectory (va("%s/"GAMENAME, basedir) );
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#ifndef _UQUAKE_QUAKEDEF_H
|
||||
#define _UQUAKE_QUAKEDEF_H
|
||||
|
||||
#define GAMENAME "id1" // directory to look in by default
|
||||
|
||||
#if defined(_WIN32) && !defined(WINDED)
|
||||
#if defined(_M_IX86)
|
||||
#define __i386__ 1
|
||||
|
|
Loading…
Reference in a new issue