diff options
author | Simon Howard | 2005-08-30 22:11:10 +0000 |
---|---|---|
committer | Simon Howard | 2005-08-30 22:11:10 +0000 |
commit | a77ebf56c612924bdc3da30ae5f26e41372cac9c (patch) | |
tree | e2643862a2572697207906db62e5736f92f05f9d /src/d_main.c | |
parent | 0e7c1aeabdea199f705a09eb07139dabb0b47f54 (diff) | |
download | chocolate-doom-a77ebf56c612924bdc3da30ae5f26e41372cac9c.tar.gz chocolate-doom-a77ebf56c612924bdc3da30ae5f26e41372cac9c.tar.bz2 chocolate-doom-a77ebf56c612924bdc3da30ae5f26e41372cac9c.zip |
Windows fixes
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 57
Diffstat (limited to 'src/d_main.c')
-rw-r--r-- | src/d_main.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/d_main.c b/src/d_main.c index 797b160a..8f4683bd 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: d_main.c 41 2005-08-04 22:55:08Z fraggle $ +// $Id: d_main.c 57 2005-08-30 22:11:10Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.6 2005/08/30 22:11:10 fraggle +// Windows fixes +// // Revision 1.5 2005/08/04 22:55:07 fraggle // Use DOOM_VERSION to define the Doom version (don't conflict with // automake's config.h). Display GPL message instead of anti-piracy @@ -50,7 +53,7 @@ //----------------------------------------------------------------------------- -static const char rcsid[] = "$Id: d_main.c 41 2005-08-04 22:55:08Z fraggle $"; +static const char rcsid[] = "$Id: d_main.c 57 2005-08-30 22:11:10Z fraggle $"; #define BGCOLOR 7 #define FGCOLOR 8 @@ -893,7 +896,11 @@ void D_DoomMain (void) if (M_CheckParm("-cdrom")) { printf(D_CDROM); +#ifdef _WIN32 + mkdir("c:\\doomdata"); +#else mkdir("c:\\doomdata",0); +#endif strcpy (basedefault,"c:/doomdata/default.cfg"); } |