diff options
Diffstat (limited to 'src')
-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 |