summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
authorSimon Howard2015-06-08 21:22:35 -0400
committerSimon Howard2015-06-08 21:22:35 -0400
commit10d4be9bae97006ee0b3735d3392666d74bf965c (patch)
tree10af4dd1fb2fc4055926e22a4baa34b6e27bc1f8 /src/hexen
parent25c67b716015e1a5cf9379ffcb7fd6e8a62766c6 (diff)
downloadchocolate-doom-10d4be9bae97006ee0b3735d3392666d74bf965c.tar.gz
chocolate-doom-10d4be9bae97006ee0b3735d3392666d74bf965c.tar.bz2
chocolate-doom-10d4be9bae97006ee0b3735d3392666d74bf965c.zip
hexen: Replace v1.0 warning with an error.
The warning message would have been missed by anyone not running from the console (ie. a good portion of all Windows and Mac users), so replace the warning message with an error instead (I_Error calls produce a GUI message popup). Allow this behavior to be overridden by using a special command line flag.
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/h2_main.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c
index b98621b2..1e60c84a 100644
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -270,15 +270,26 @@ void D_IdentifyVersion(void)
maxplayers = 4;
}
- // The v1.0 IWAD file is missing a bunch of lumps.
- if (gamemode != shareware && W_CheckNumForName("CLUS1MSG") == -1)
+ // The v1.0 IWAD file is missing a bunch of lumps that can cause the game
+ // to crash, so we exit with an error if the user tries to play with it.
+ // But we provide an override command line flag if they really want to
+ // do it.
+
+ //!
+ // If provided, the check for the v1.0 IWAD file is disabled, even though
+ // it will almost certainly cause the game to crash.
+ //
+ // @category compat
+ //
+
+ if (!M_ParmExists("-v10override")
+ && gamemode != shareware && W_CheckNumForName("CLUS1MSG") < 0)
{
- printf(
- "** WARNING: You are playing with the Hexen v1.0 IWAD. This\n"
- "** isn't supported by " PACKAGE_NAME ", and you may find that\n"
- "** the game will crash. Please upgrade to the v1.1 IWAD file.\n"
- "** See here for more information:\n"
- "** http://www.doomworld.com/classicdoom/info/patches.php\n");
+ I_Error(
+ "You are trying to use the Hexen v1.0 IWAD. This isn't\n"
+ "supported by " PACKAGE_NAME ". Please upgrade to the v1.1\n"
+ "IWAD file. See here for more information:\n"
+ " http://www.doomworld.com/classicdoom/info/patches.php");
}
}