From 48e96443151db631e1153d459e850c49a96ccb29 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 19 Apr 2014 03:32:38 -0400 Subject: 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. --- src/doom/d_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/doom/d_main.c') diff --git a/src/doom/d_main.c b/src/doom/d_main.c index 2a4fe236..c58306f2 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -1305,6 +1305,8 @@ void D_DoomMain (void) DEH_printf("W_Init: Init WADfiles.\n"); D_AddFile(iwadfile); + W_CheckCorrectIWAD(doom); + // Doom 3: BFG Edition includes modified versions of the classic // IWADs which can be identified by an additional DMENUPIC lump. // Furthermore, the M_GDHIGH lumps have been modified in a way that -- cgit v1.2.3