mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 12:40:42 +00:00
The gfx.wad error is now idiotproof!
This commit is contained in:
parent
bbb37d0080
commit
4a0d453b48
2 changed files with 13 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
extern struct cvar_s *fs_userpath;
|
extern struct cvar_s *fs_userpath;
|
||||||
extern struct cvar_s *fs_sharepath;
|
extern struct cvar_s *fs_sharepath;
|
||||||
|
extern struct cvar_s *fs_basegame;
|
||||||
extern struct cvar_s *fs_skinbase;
|
extern struct cvar_s *fs_skinbase;
|
||||||
|
|
||||||
extern int com_filesize;
|
extern int com_filesize;
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "QF/cvar.h"
|
||||||
#include "QF/qendian.h"
|
#include "QF/qendian.h"
|
||||||
#include "QF/sys.h"
|
#include "QF/sys.h"
|
||||||
#include "QF/wad.h"
|
#include "QF/wad.h"
|
||||||
|
@ -87,7 +88,17 @@ W_LoadWadFile (char *filename)
|
||||||
|
|
||||||
wad_base = COM_LoadHunkFile (filename);
|
wad_base = COM_LoadHunkFile (filename);
|
||||||
if (!wad_base)
|
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;
|
header = (wadinfo_t *) wad_base;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue