Replaced various "baseq3" strings with the centrally defined BASEGAME macro.

This commit is contained in:
Thilo Schulz 2006-04-26 11:27:12 +00:00
parent 88b2b82b00
commit 70fca10af2
3 changed files with 7 additions and 7 deletions

View file

@ -2600,7 +2600,7 @@ void Com_WriteConfiguration( void ) {
if (UI_usesUniqueCDKey() && fs && fs->string[0] != 0) { if (UI_usesUniqueCDKey() && fs && fs->string[0] != 0) {
Com_WriteCDKey( fs->string, &cl_cdkey[16] ); Com_WriteCDKey( fs->string, &cl_cdkey[16] );
} else { } else {
Com_WriteCDKey( "baseq3", cl_cdkey ); Com_WriteCDKey( BASEGAME, cl_cdkey );
} }
#endif #endif
} }

View file

@ -2182,7 +2182,7 @@ int FS_GetModList( char *listbuf, int bufsize ) {
continue; continue;
} }
// we drop "baseq3" "." and ".." // we drop "baseq3" "." and ".."
if (Q_stricmp(name, "baseq3") && Q_stricmpn(name, ".", 1)) { if (Q_stricmp(name, BASEGAME) && Q_stricmpn(name, ".", 1)) {
// now we need to find some .pk3 files to validate the mod // now we need to find some .pk3 files to validate the mod
// NOTE TTimo: (actually I'm not sure why .. what if it's a mod under developement with no .pk3?) // NOTE TTimo: (actually I'm not sure why .. what if it's a mod under developement with no .pk3?)
// we didn't keep the information when we merged the directory names, as to what OS Path it was found under // we didn't keep the information when we merged the directory names, as to what OS Path it was found under
@ -2618,7 +2618,7 @@ qboolean FS_ComparePaks( char *neededpaks, int len, qboolean dlstring ) {
havepak = qfalse; havepak = qfalse;
// never autodownload any of the id paks // never autodownload any of the id paks
if ( FS_idPak(fs_serverReferencedPakNames[i], "baseq3") || FS_idPak(fs_serverReferencedPakNames[i], "missionpack") ) { if ( FS_idPak(fs_serverReferencedPakNames[i], BASEGAME) || FS_idPak(fs_serverReferencedPakNames[i], "missionpack") ) {
continue; continue;
} }
@ -2829,7 +2829,7 @@ static void FS_Startup( const char *gameName ) {
} }
} }
Com_ReadCDKey( "baseq3" ); Com_ReadCDKey(BASEGAME);
fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO ); fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
if (fs && fs->string[0] != 0) { if (fs && fs->string[0] != 0) {
Com_AppendCDKey( fs->string ); Com_AppendCDKey( fs->string );
@ -2877,7 +2877,7 @@ static void FS_CheckPak0( void )
for( path = fs_searchpaths; path; path = path->next ) { for( path = fs_searchpaths; path; path = path->next ) {
if( path->pack && if( path->pack &&
!Q_stricmpn( path->pack->pakBasename, "pak0", MAX_OSPATH ) && !Q_stricmpn( path->pack->pakBasename, "pak0", MAX_OSPATH ) &&
(!Q_stricmpn( path->pack->pakGamename, "baseq3", MAX_OSPATH ) || (!Q_stricmpn( path->pack->pakGamename, BASEGAME, MAX_OSPATH ) ||
!Q_stricmpn( path->pack->pakGamename, "demoq3", MAX_OSPATH ))) { !Q_stricmpn( path->pack->pakGamename, "demoq3", MAX_OSPATH ))) {
foundPak0 = qtrue; foundPak0 = qtrue;
@ -2903,7 +2903,7 @@ static void FS_CheckPak0( void )
if( !foundPak0 ) { if( !foundPak0 ) {
Com_Error( ERR_FATAL, "Couldn't find pak0.pk3. Check that your Q3\n" Com_Error( ERR_FATAL, "Couldn't find pak0.pk3. Check that your Q3\n"
"executable is in the correct place and that every file\n" "executable is in the correct place and that every file\n"
"in the baseq3 directory is present and readable." ); "in the %s directory is present and readable.", BASEGAME);
} }
} }

View file

@ -768,7 +768,7 @@ void SV_WriteDownloadToClient( client_t *cl , msg_t *msg )
Com_Printf( "clientDownload: %d : begining \"%s\"\n", cl - svs.clients, cl->downloadName ); Com_Printf( "clientDownload: %d : begining \"%s\"\n", cl - svs.clients, cl->downloadName );
missionPack = FS_idPak(cl->downloadName, "missionpack"); missionPack = FS_idPak(cl->downloadName, "missionpack");
idPack = missionPack || FS_idPak(cl->downloadName, "baseq3"); idPack = missionPack || FS_idPak(cl->downloadName, BASEGAME);
if ( !sv_allowDownload->integer || idPack || if ( !sv_allowDownload->integer || idPack ||
( cl->downloadSize = FS_SV_FOpenFileRead( cl->downloadName, &cl->download ) ) <= 0 ) { ( cl->downloadSize = FS_SV_FOpenFileRead( cl->downloadName, &cl->download ) ) <= 0 ) {