Disabled pak files checking because it was causing trouble between languages

This commit is contained in:
OM 2023-06-27 21:05:38 +02:00
parent 79ce5261a5
commit c83bbd6a58
2 changed files with 12 additions and 88 deletions

View file

@ -3589,103 +3589,27 @@ static void FS_Startup(const char* gameName, const char* extensionName)
SaveRegistryInfo( qtrue, "basepath", fs_basepath->string, 128 );
}
#ifndef STANDALONE
/*
===================
FS_CheckPak0
Checks that pak0.pk3 is present and its checksum is correct
Check whether any of the original id pak files is present,
and start up in standalone mode, if there are none and a
different com_basegame was set.
Note: If you're building a game that doesn't depend on the
Q3 media pak0.pk3, you'll want to remove this function
Q3 media pak0.pk3, you'll want to remove this by defining
STANDALONE in q_shared.h
===================
*/
static void FS_CheckPak0( void )
{
searchpath_t *path;
qboolean founddemo = qfalse;
unsigned foundPak = 0;
for( path = fs_searchpaths; path; path = path->next )
{
const char* pakBasename = path->pack->pakBasename;
if(!path->pack)
continue;
if(!Q_stricmpn( path->pack->pakGamename, "demoq3", MAX_OSPATH )
&& !Q_stricmpn( pakBasename, "pak0", MAX_OSPATH ))
{
founddemo = qtrue;
if( path->pack->checksum == DEMO_PAK0_CHECKSUM )
{
Com_Printf( "\n\n"
"**************************************************\n"
"WARNING: It looks like you're using pak0.pk3\n"
"from the demo. This may work fine, but it is not\n"
"guaranteed or supported.\n"
"**************************************************\n\n\n" );
}
}
else if(!Q_stricmpn( path->pack->pakGamename, BASEGAME, MAX_OSPATH )
&& strlen(pakBasename) == 4 && !Q_stricmpn( pakBasename, "pak", 3 )
&& pakBasename[3] >= '0' && pakBasename[3] <= '5')
{
if( path->pack->checksum != pak_checksums[pakBasename[3]-'0'] )
{
if(pakBasename[0] == '0')
{
Com_Printf("\n\n"
"**************************************************\n"
"WARNING: pak0.pk3 is present but its checksum (%u)\n"
"is not correct. Please re-copy pak0.pk3 from your\n"
"legitimate Q3 CDROM.\n"
"**************************************************\n\n\n",
path->pack->checksum );
}
else
{
Com_Printf("\n\n"
"**************************************************\n"
"WARNING: pak%d.pk3 is present but its checksum (%u)\n"
"is not correct. Please re-install the point release\n"
"**************************************************\n\n\n",
pakBasename[3]-'0', path->pack->checksum );
}
}
foundPak |= 1<<(pakBasename[3]-'0');
}
}
// FIXME: IneQuation: re-enable this when we're done with other stuff
/*if(!founddemo && (foundPak & 0x1ff) != 0x1ff )
{
if((foundPak&1) != 1 )
{
Com_Printf("\n\n"
"pak0.pk3 is missing. Please copy it\n"
"from your legitimate Q3 CDROM.\n");
}
if((foundPak&0x1fe) != 0x1fe )
{
Com_Printf("\n\n"
"Point Release files are missing. Please\n"
"re-install the 1.32 point release.\n");
}
Com_Printf("\n\n"
"Also check that your Q3 executable is in\n"
"the correct place and that every file\n"
"in the %s directory is present and readable.\n", BASEGAME);
if(!fs_gamedirvar->string[0]
|| !Q_stricmp( fs_gamedirvar->string, BASEGAME )
|| !Q_stricmp( fs_gamedirvar->string, "missionpack" ))
Com_Error(ERR_FATAL, "You need to install Quake III Arena in order to play");
}*/
// Not implemented anymore.
// There are so many different version of pak files (depending on MOH:AA language)
// That it would be time-consuming to track all the different versions
// So, STUB function from now
}
#endif
/*
=====================

View file

@ -663,7 +663,7 @@ issues.
#define FS_CGAME_REF 0x04
#define FS_QAGAME_REF 0x08
// number of id paks that will never be autodownloaded from baseq3
#define NUM_ID_PAKS 9
#define NUM_ID_PAKS 5
#define MAX_FILE_HANDLES 64