diff options
Diffstat (limited to 'src/g_game.c')
-rw-r--r-- | src/g_game.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/g_game.c b/src/g_game.c index 6405343f..fac27351 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: g_game.c 192 2005-10-13 23:12:30Z fraggle $ +// $Id: g_game.c 202 2005-10-16 01:18:10Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,11 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.14 2005/10/16 01:18:10 fraggle +// Global "configdir" variable with directory to store config files in. +// Create a function to find the filename for a savegame slot. Store +// savegames in the config dir. +// // Revision 1.13 2005/10/13 23:12:30 fraggle // Fix Doom 1 skies // @@ -77,7 +82,7 @@ static const char -rcsid[] = "$Id: g_game.c 192 2005-10-13 23:12:30Z fraggle $"; +rcsid[] = "$Id: g_game.c 202 2005-10-16 01:18:10Z fraggle $"; #include <string.h> #include <stdlib.h> @@ -1367,10 +1372,15 @@ void G_DoSaveGame (void) int length; int i; +#if 0 + // -cdrom currently broken if (M_CheckParm("-cdrom")) sprintf(name,"c:\\doomdata\\"SAVEGAMENAME"%d.dsg",savegameslot); else - sprintf (name,SAVEGAMENAME"%d.dsg",savegameslot); +#endif + + strcpy(name, P_SaveGameFile(savegameslot)); + description = savedescription; save_p = savebuffer = screens[1]+0x4000; |