diff options
author | Simon Howard | 2014-04-19 03:32:38 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-19 03:32:38 -0400 |
commit | 48e96443151db631e1153d459e850c49a96ccb29 (patch) | |
tree | c6a8df63662657dc92eeb73c0112f1190d3b21a7 /src/w_wad.h | |
parent | b86a383c6fdc394ef995a8e88324c89408f01c05 (diff) | |
download | chocolate-doom-48e96443151db631e1153d459e850c49a96ccb29.tar.gz chocolate-doom-48e96443151db631e1153d459e850c49a96ccb29.tar.bz2 chocolate-doom-48e96443151db631e1153d459e850c49a96ccb29.zip |
Exit with error on startup if using the wrong IWAD.
Having multiple binaries can cause some confusion - some users try to
run chocolate-doom with hexen.wad, thinking it is supported. Add a
startup check that makes sure the user is not trying to start the game
using the wrong IWAD file for the binary being run.
This fixes #382.
Diffstat (limited to 'src/w_wad.h')
-rw-r--r-- | src/w_wad.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w_wad.h b/src/w_wad.h index d2626426..a7dda363 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -31,6 +31,7 @@ #include <stdio.h> #include "doomtype.h" +#include "d_mode.h" #include "w_file.h" @@ -80,5 +81,6 @@ extern unsigned int W_LumpNameHash(const char *s); void W_ReleaseLumpNum(int lump); void W_ReleaseLumpName(char *name); +void W_CheckCorrectIWAD(GameMission_t mission); #endif |