diff options
author | Simon Howard | 2009-03-08 23:46:09 +0000 |
---|---|---|
committer | Simon Howard | 2009-03-08 23:46:09 +0000 |
commit | f0c5cc898d993d3388dfbce5833e8ccca7b2f03f (patch) | |
tree | 4ba918a271e4ea0142170c28b53e35b6f9d506f3 /src/doom | |
parent | 67fbcdce28b89b24f8fb27d5f25393ad775af719 (diff) | |
download | chocolate-doom-f0c5cc898d993d3388dfbce5833e8ccca7b2f03f.tar.gz chocolate-doom-f0c5cc898d993d3388dfbce5833e8ccca7b2f03f.tar.bz2 chocolate-doom-f0c5cc898d993d3388dfbce5833e8ccca7b2f03f.zip |
Fix -cdrom command line parameter to work with Heretic and Hexen;
compiles now work on Windows.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1452
Diffstat (limited to 'src/doom')
-rw-r--r-- | src/doom/d_main.c | 24 |
1 files changed, 23 insertions, 1 deletions
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 <x> |