From 3a41ade9fab0556d0d025c0b0e81834436a4f2e8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 8 Sep 2008 17:55:12 +0000 Subject: Remove i_system.c dependency on doom/ code and add a generic I_AtExit() API for scheduling functions to call on quit. Subversion-branch: /branches/raven-branch Subversion-revision: 1216 --- src/doom/s_sound.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/doom/s_sound.c') diff --git a/src/doom/s_sound.c b/src/doom/s_sound.c index 964ed27f..fa236970 100644 --- a/src/doom/s_sound.c +++ b/src/doom/s_sound.c @@ -147,6 +147,8 @@ void S_Init(int sfxVolume, int musicVolume) { S_sfx[i].lumpnum = S_sfx[i].usefulness = -1; } + + I_AtExit(S_Shutdown, true); } void S_Shutdown(void) -- cgit v1.2.3