W_LoadWadFile, COM_CheckRegistered: more helpful error messages

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1476 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-08-14 04:10:32 +00:00
parent fd7a90eacb
commit 90e51f683a
2 changed files with 10 additions and 2 deletions

View File

@ -1289,7 +1289,11 @@ static void COM_CheckRegistered (void)
Cvar_SetROM ("registered", "0"); Cvar_SetROM ("registered", "0");
Con_Printf ("Playing shareware version.\n"); Con_Printf ("Playing shareware version.\n");
if (com_modified) if (com_modified)
Sys_Error ("You must have the registered version to use modified games"); Sys_Error ("You must have the registered version to use modified games.\n\n"
"Basedir is: %s\n\n"
"Check that this has an " GAMENAME " subdirectory containing pak0.pak and pak1.pak, "
"or use the -basedir command-line option to specify another directory.",
com_basedir);
return; return;
} }

View File

@ -79,7 +79,11 @@ void W_LoadWadFile (void) //johnfitz -- filename is now hard-coded for honesty
free (wad_base); free (wad_base);
wad_base = COM_LoadMallocFile (filename, NULL); wad_base = COM_LoadMallocFile (filename, NULL);
if (!wad_base) if (!wad_base)
Sys_Error ("W_LoadWadFile: couldn't load %s", filename); Sys_Error ("W_LoadWadFile: couldn't load %s\n\n"
"Basedir is: %s\n\n"
"Check that this has an " GAMENAME " subdirectory containing pak0.pak and pak1.pak, "
"or use the -basedir command-line option to specify another directory.",
filename, com_basedir);
header = (wadinfo_t *)wad_base; header = (wadinfo_t *)wad_base;