ref: c14396d9f4132b8d0866e0307be7a5085edd7ddb
parent: b2b2f60ed34d3530745167099aff4fb6d64cd4cb
author: Simon Howard <fraggle@gmail.com>
date: Sat Aug 2 09:29:37 EDT 2008
Search for chex.deh in WAD path. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1169
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -774,14 +774,23 @@
static void LoadChexDeh(void)
{
+ char *chex_deh;
+
if (gameversion == exe_chex)
{
- if (!DEH_LoadFile("chex.deh"))
+ chex_deh = D_FindWADByName("chex.deh");
+
+ if (chex_deh == NULL)
{
I_Error("Unable to find Chex Quest dehacked file (chex.deh).\n"
"The dehacked file is required in order to emulate\n"
"chex.exe correctly. Please download it from the\n"
"/idgames repository.");
+ }
+
+ if (!DEH_LoadFile(chex_deh))
+ {
+ I_Error("Failed to load chex.deh needed for emulating chex.exe.");
}
}
}