mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-04-21 02:30:49 +00:00
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:
parent
fd7a90eacb
commit
90e51f683a
2 changed files with 10 additions and 2 deletions
|
@ -1289,7 +1289,11 @@ static void COM_CheckRegistered (void)
|
|||
Cvar_SetROM ("registered", "0");
|
||||
Con_Printf ("Playing shareware version.\n");
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,11 @@ void W_LoadWadFile (void) //johnfitz -- filename is now hard-coded for honesty
|
|||
free (wad_base);
|
||||
wad_base = COM_LoadMallocFile (filename, NULL);
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue