diff options
author | Simon Howard | 2008-10-08 22:24:18 +0000 |
---|---|---|
committer | Simon Howard | 2008-10-08 22:24:18 +0000 |
commit | 7f69666e50aa954c1339890e1e471846d84680a7 (patch) | |
tree | 59d5c7da95aa417c67de2a4dead4affb921bd238 | |
parent | 1670801dba930b9fa9d6a2b4a953091970dc180a (diff) | |
download | chocolate-doom-7f69666e50aa954c1339890e1e471846d84680a7.tar.gz chocolate-doom-7f69666e50aa954c1339890e1e471846d84680a7.tar.bz2 chocolate-doom-7f69666e50aa954c1339890e1e471846d84680a7.zip |
Save config file at exit and initialise sound (fixes music)
Subversion-branch: /branches/raven-branch
Subversion-revision: 1344
-rw-r--r-- | src/hexen/h2_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
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(); |