summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-08-02 13:29:37 +0000
committerSimon Howard2008-08-02 13:29:37 +0000
commitc14396d9f4132b8d0866e0307be7a5085edd7ddb (patch)
tree036e6c0335c8862b52f328642103694d6755732b /src
parentb2b2f60ed34d3530745167099aff4fb6d64cd4cb (diff)
downloadchocolate-doom-c14396d9f4132b8d0866e0307be7a5085edd7ddb.tar.gz
chocolate-doom-c14396d9f4132b8d0866e0307be7a5085edd7ddb.tar.bz2
chocolate-doom-c14396d9f4132b8d0866e0307be7a5085edd7ddb.zip
Search for chex.deh in WAD path.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1169
Diffstat (limited to 'src')
-rw-r--r--src/d_main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/d_main.c b/src/d_main.c
index 9aa85f9c..91ea48ef 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -774,15 +774,24 @@ void PrintGameVersion(void)
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.");
+ }
}
}