From 609feb779ce4b810586b4e2d5357904c70c4d975 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Sun, 10 Jun 2001 12:54:06 +0000 Subject: [PATCH] Idiotproof the can't find gfx.wad message in newtree too --- source/wad.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/wad.c b/source/wad.c index 5df6981..39d3837 100644 --- a/source/wad.c +++ b/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;