mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
Idiotproof the can't find gfx.wad message in newtree too
This commit is contained in:
parent
4c9a189f90
commit
609feb779c
1 changed files with 11 additions and 1 deletions
12
source/wad.c
12
source/wad.c
|
@ -91,7 +91,17 @@ W_LoadWadFile (char *filename)
|
|||
|
||||
wad_base = COM_LoadHunkFile (filename);
|
||||
if (!wad_base)
|
||||
Sys_Error ("W_LoadWadFile: couldn't load %s", filename);
|
||||
{
|
||||
Sys_Printf (
|
||||
"\n The following error is somewhat misleading. Most likely you don't\n"
|
||||
" have a file by that name on your system because it's stored in a pak\n"
|
||||
" file. The real problem is that it's not where we expect it to be.\n\n"
|
||||
" Game data should be installed into fs_sharepath or fs_userpath, in a\n"
|
||||
" subdirectory named %s.\n\n", fs_basegame->string);
|
||||
Sys_Printf (" fs_sharepath is %s\n", fs_sharepath->string);
|
||||
Sys_Printf (" fs_userpath is %s\n\n", fs_userpath->string);
|
||||
Sys_Error ("W_LoadWadFile: unable to load %s\n\n", filename);
|
||||
}
|
||||
|
||||
header = (wadinfo_t *) wad_base;
|
||||
|
||||
|
|
Loading…
Reference in a new issue