From c33d1935292af81142783137e09dec828df298bc Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 27 Sep 2008 01:54:19 +0000 Subject: Save Heretic configuration files on exit. Subversion-branch: /branches/raven-branch Subversion-revision: 1294 --- src/heretic/d_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/heretic/d_main.c') 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 #include +#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(); -- cgit v1.2.3