mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 00:30:38 +00:00
some oldtree cruft for rogue/hipnotic removed (we'll support them in a
very different way than did Id Software did later on, it'll be a major improvement, that's for sure..) fs_basegame Cvar created, defaults to whatever you selected in config.h, most likely id1.
This commit is contained in:
parent
91e380d3b3
commit
efb2d99e22
4 changed files with 18 additions and 37 deletions
|
@ -104,6 +104,7 @@ char gamedirfile[MAX_OSPATH];
|
|||
|
||||
cvar_t *fs_userpath;
|
||||
cvar_t *fs_sharepath;
|
||||
cvar_t *fs_basegame;
|
||||
|
||||
|
||||
int com_filesize;
|
||||
|
@ -830,9 +831,10 @@ COM_Gamedir (char *dir)
|
|||
//
|
||||
Cache_Flush ();
|
||||
|
||||
if (strcmp (dir, BASEGAME) == 0)
|
||||
if (strcmp (dir, fs_basegame->string) == 0)
|
||||
return;
|
||||
if (strcmp (dir, "qw") == 0)
|
||||
if (strcmp (dir, "qw") == 0
|
||||
&& strcmp (fs_basegame->string, "id1") == 0)
|
||||
return;
|
||||
|
||||
COM_AddGameDirectory (dir);
|
||||
|
@ -886,27 +888,26 @@ void
|
|||
COM_InitFilesystem ( void )
|
||||
{
|
||||
fs_sharepath = Cvar_Get ("fs_sharepath", FS_SHAREPATH, CVAR_ROM,
|
||||
"The location of shared game directories");
|
||||
"location of shared (read only) game directories");
|
||||
fs_userpath = Cvar_Get ("fs_userpath", FS_USERPATH, CVAR_ROM,
|
||||
"The location of your game directories");
|
||||
"location of your game directories");
|
||||
fs_basegame = Cvar_Get ("fs_basegame", BASEGAME, CVAR_ROM,
|
||||
"game to use by default");
|
||||
Cmd_AddCommand ("gamedir", COM_Gamedir_f);
|
||||
|
||||
/*
|
||||
start up with BASEGAME by default
|
||||
start up with basegame->string by default
|
||||
*/
|
||||
COM_CreatePath (va("%s/%s/dummy", fs_userpath->string,BASEGAME));
|
||||
COM_AddGameDirectory (BASEGAME);
|
||||
if (hipnotic) {
|
||||
COM_CreatePath (va("%s/%s/dummy", fs_userpath->string,"hipnotic"));
|
||||
COM_AddGameDirectory ("hipnotic");
|
||||
}
|
||||
if (rogue) {
|
||||
COM_CreatePath (va("%s/%s/dummy", fs_userpath->string,"rogue"));
|
||||
COM_AddGameDirectory ("rogue");
|
||||
}
|
||||
COM_CreatePath (va("%s/%s/dummy", fs_userpath->string,
|
||||
fs_basegame->string));
|
||||
COM_AddGameDirectory(fs_basegame->string);
|
||||
|
||||
COM_CreatePath (va("%s/qw/dummy", fs_userpath->string));
|
||||
COM_AddGameDirectory ("qw");
|
||||
// If we're dealing with id1, use qw too
|
||||
if (stricmp (fs_basegame->string, "id1") == 0)
|
||||
{
|
||||
COM_CreatePath (va("%s/qw/dummy", fs_userpath->string));
|
||||
COM_AddGameDirectory ("qw");
|
||||
}
|
||||
|
||||
// any set gamedirs will be freed up to here
|
||||
com_base_searchpaths = com_searchpaths;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue