From 7f69666e50aa954c1339890e1e471846d84680a7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 8 Oct 2008 22:24:18 +0000 Subject: Save config file at exit and initialise sound (fixes music) Subversion-branch: /branches/raven-branch Subversion-revision: 1344 --- src/hexen/h2_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/hexen/h2_main.c') diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index c6caf2e7..6c7e4aa4 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -211,6 +211,9 @@ void D_DoomMain(void) M_SetConfigFilenames("hexen.cfg", PROGRAM_PREFIX "hexen.cfg"); M_LoadDefaults(); + I_AtExit(M_SaveDefaults, false); + + // Now that the savedir is loaded from .CFG, make sure it exists CreateSavePath(); @@ -248,16 +251,17 @@ void D_DoomMain(void) InitMapMusicInfo(); // Init music fields in mapinfo -#ifdef __WATCOMC__ ST_Message("S_InitScript\n"); S_InitScript(); -#endif ST_Message("SN_InitSequenceScript: Registering sound sequences.\n"); SN_InitSequenceScript(); ST_Message("I_Init: Setting up machine state.\n"); I_Init(); + S_Init(); + S_Start(); + ST_Message("ST_Init: Init startup screen.\n"); ST_Init(); -- cgit v1.2.3