ref: 7f69666e50aa954c1339890e1e471846d84680a7
parent: 1670801dba930b9fa9d6a2b4a953091970dc180a
author: Simon Howard <fraggle@gmail.com>
date: Wed Oct 8 18:24:18 EDT 2008
Save config file at exit and initialise sound (fixes music) Subversion-branch: /branches/raven-branch Subversion-revision: 1344
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -211,6 +211,9 @@
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,15 +251,16 @@
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();