summaryrefslogtreecommitdiff
path: root/src/heretic/d_main.c
diff options
context:
space:
mode:
authorSimon Howard2008-09-27 01:54:19 +0000
committerSimon Howard2008-09-27 01:54:19 +0000
commitc33d1935292af81142783137e09dec828df298bc (patch)
treeab6757191ca595550282572df8340456ab720f65 /src/heretic/d_main.c
parentc253a1522f6f286258bb6d753e5b01fbd887a880 (diff)
downloadchocolate-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.c7
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();