diff options
author | Simon Howard | 2008-10-13 21:19:17 +0000 |
---|---|---|
committer | Simon Howard | 2008-10-13 21:19:17 +0000 |
commit | 7eb3ddafc8ab557cb8828de390ca8415b6705bdf (patch) | |
tree | dab896fc4b5f300eebe7945daab7648d970d9f8f | |
parent | 6f116526d85e09a762ed1a7b295f684926c862ba (diff) | |
download | chocolate-doom-7eb3ddafc8ab557cb8828de390ca8415b6705bdf.tar.gz chocolate-doom-7eb3ddafc8ab557cb8828de390ca8415b6705bdf.tar.bz2 chocolate-doom-7eb3ddafc8ab557cb8828de390ca8415b6705bdf.zip |
Perform necessary shutdown tasks on exit of Hexen.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1357
-rw-r--r-- | src/hexen/h2_main.c | 8 | ||||
-rw-r--r-- | src/hexen/s_sound.c | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index 6fc85dc7..b34205c4 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -207,6 +207,13 @@ static boolean D_GrabMouseCallback(void) return (gamestate == GS_LEVEL) && !demoplayback; } +// Message displayed when quitting Hexen + +static void D_HexenQuitMessage(void) +{ + printf("\nHexen: Beyond Heretic\n"); +} + //========================================================================== // // H2_Main @@ -218,6 +225,7 @@ void D_DoomMain(void) { int p; + I_AtExit(D_HexenQuitMessage, false); M_FindResponseFile(); setbuf(stdout, NULL); startepisode = 1; diff --git a/src/hexen/s_sound.c b/src/hexen/s_sound.c index 426302b9..954bf817 100644 --- a/src/hexen/s_sound.c +++ b/src/hexen/s_sound.c @@ -37,6 +37,8 @@ #define DEFAULT_ARCHIVEPATH "o:\\sound\\archive\\" +void S_ShutDown(void); + boolean i_CDMusic; int i_CDTrack; int i_CDCurrentTrack; @@ -734,6 +736,8 @@ void S_Init(void) } I_SetMusicVolume(snd_MusicVolume); + I_AtExit(S_ShutDown, true); + #ifdef CDMUSIC //TODO // Attempt to setup CD music |