* Improve displayed error message when pak?.pk3 is missing

This commit is contained in:
Tim Angus 2009-11-06 16:25:14 +00:00
parent c98df5ad58
commit 0f9a5e09eb

View file

@ -2949,26 +2949,28 @@ static void FS_CheckPak0( void )
&& &&
(!founddemo && (foundPak & 0x1ff) != 0x1ff) ) (!founddemo && (foundPak & 0x1ff) != 0x1ff) )
{ {
char errorText[MAX_STRING_CHARS] = "";
if((foundPak&1) != 1 ) if((foundPak&1) != 1 )
{ {
Com_Printf("\n\n" Q_strcat(errorText, sizeof(errorText),
"pak0.pk3 is missing. Please copy it\n" "\"pak0.pk3\" is missing. Please copy it "
"from your legitimate Q3 CDROM.\n"); "from your legitimate Q3 CDROM. ");
} }
if((foundPak&0x1fe) != 0x1fe ) if((foundPak&0x1fe) != 0x1fe )
{ {
Com_Printf("\n\n" Q_strcat(errorText, sizeof(errorText),
"Point Release files are missing. Please\n" "Point Release files are missing. Please "
"re-install the 1.32 point release.\n"); "re-install the 1.32 point release. ");
} }
Com_Printf("\n\n" Q_strcat(errorText, sizeof(errorText),
"Also check that your Q3 executable is in\n" va("Also check that your ioq3 executable is in "
"the correct place and that every file\n" "the correct place and that every file "
"in the %s directory is present and readable.\n", BASEGAME); "in the \"%s\" directory is present and readable", BASEGAME));
Com_Error(ERR_FATAL, "You need to install Quake III Arena in order to play"); Com_Error(ERR_FATAL, errorText);
} }
if(foundPak & 1) if(foundPak & 1)