From f0c5cc898d993d3388dfbce5833e8ccca7b2f03f Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 8 Mar 2009 23:46:09 +0000 Subject: Fix -cdrom command line parameter to work with Heretic and Hexen; compiles now work on Windows. Subversion-branch: /branches/raven-branch Subversion-revision: 1452 --- src/doom/d_main.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/doom/d_main.c') diff --git a/src/doom/d_main.c b/src/doom/d_main.c index 0bda5cbf..daa62209 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -1187,7 +1187,29 @@ void D_DoomMain (void) // find which dir to use for config files - M_SetConfigDir(); +#ifdef _WIN32 + + //! + // @platform windows + // @vanilla + // + // Save configuration data and savegames in c:\doomdata, + // allowing play from CD. + // + + if (M_CheckParm("-cdrom") > 0) + { + printf(D_CDROM); + + M_SetConfigDir("c:\\doomdata\\"); + } + else +#endif + { + // Auto-detect the configuration dir. + + M_SetConfigDir(NULL); + } //! // @arg -- cgit v1.2.3