diff options
author | Simon Howard | 2008-09-27 01:54:19 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-27 01:54:19 +0000 |
commit | c33d1935292af81142783137e09dec828df298bc (patch) | |
tree | ab6757191ca595550282572df8340456ab720f65 /src/heretic/d_main.c | |
parent | c253a1522f6f286258bb6d753e5b01fbd887a880 (diff) | |
download | chocolate-doom-c33d1935292af81142783137e09dec828df298bc.tar.gz chocolate-doom-c33d1935292af81142783137e09dec828df298bc.tar.bz2 chocolate-doom-c33d1935292af81142783137e09dec828df298bc.zip |
Save Heretic configuration files on exit.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1294
Diffstat (limited to 'src/heretic/d_main.c')
-rw-r--r-- | src/heretic/d_main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c index aed34a30..3f96a867 100644 --- a/src/heretic/d_main.c +++ b/src/heretic/d_main.c @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdlib.h> +#include "config.h" #include "ct_chat.h" #include "doomdef.h" #include "i_system.h" @@ -652,7 +653,7 @@ void blitStartup(void) _setbkcolor(4); // Red _settextcolor(14); // Yellow _settextposition(3, 47); - _outtext(VERSION_TEXT); + _outtext(HERETIC_VERSION_TEXT); // Hide cursor _settextcursor(0x2000); @@ -914,9 +915,11 @@ void D_DoomMain(void) // Load defaults before initing other systems printf("M_LoadDefaults: Load system defaults.\n"); + D_BindVariables(); + M_SetConfigFilenames("heretic.cfg", PROGRAM_PREFIX "heretic.cfg"); M_LoadDefaults(); - //I_AtExit(M_SaveDefaults, false); + I_AtExit(M_SaveDefaults, false); printf("Z_Init: Init zone memory allocation daemon.\n"); Z_Init(); |