summaryrefslogtreecommitdiff
path: root/src/doom/d_main.c
diff options
context:
space:
mode:
authorSimon Howard2014-01-19 07:35:58 +0000
committerSimon Howard2014-01-19 07:35:58 +0000
commit29e7b9d813046415ca385b8fcea4c39249f9e78e (patch)
tree2eda88e34aba15b44306963b9ac0057de108d8c5 /src/doom/d_main.c
parente3047e45ebb57a407385c59d78029e98ffb4b2b8 (diff)
downloadchocolate-doom-29e7b9d813046415ca385b8fcea4c39249f9e78e.tar.gz
chocolate-doom-29e7b9d813046415ca385b8fcea4c39249f9e78e.tar.bz2
chocolate-doom-29e7b9d813046415ca385b8fcea4c39249f9e78e.zip
doom: Add support for Freedoom IWAD names.
Freedoom has new IWAD names. Support these as fallbacks if no other IWAD file can be found, but prefer FreeDM as it has Vanilla- compatible levels. Show a warning on startup if running using the main Freedoom IWADs.
Diffstat (limited to 'src/doom/d_main.c')
-rw-r--r--src/doom/d_main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 95342437..70144fb6 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1387,6 +1387,18 @@ void D_DoomMain (void)
I_PrintStartupBanner(gamedescription);
PrintDehackedBanners();
+ // Freedoom's IWADs are Boom-compatible, which means they usually
+ // don't work in Vanilla (though FreeDM is okay). Show a warning
+ // message and give a link to the website.
+ if (W_CheckNumForName("FREEDOOM") >= 0 && W_CheckNumForName("FREEDM") < 0)
+ {
+ printf(" WARNING: You are playing using one of the Freedoom IWAD\n"
+ " files, which might not work in this port. See this page\n"
+ " for more information on how to play using Freedoom:\n"
+ " http://www.chocolate-doom.org/wiki/index.php/Freedoom\n");
+ I_PrintDivider();
+ }
+
DEH_printf("I_Init: Setting up machine state.\n");
I_CheckIsScreensaver();
I_InitTimer();