foxygit / doom Log in
commit f0a776f06962adb498253b0e5bbdc3acbaa49864
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Wed Sep 7 12:34:47 2005 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Wed Sep 7 12:34:47 2005 +0000

    Maintain dos-specific options in config file

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 82
---
 src/m_misc.c | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/src/m_misc.c b/src/m_misc.c
index ca732a58..4957f6a8 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*-
 //-----------------------------------------------------------------------------
 //
-// $Id: m_misc.c 39 2005-08-04 21:48:32Z fraggle $
+// $Id: m_misc.c 82 2005-09-07 12:34:47Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -23,6 +23,9 @@
 //
 //
 // $Log$
+// Revision 1.7  2005/09/07 12:34:47  fraggle
+// Maintain dos-specific options in config file
+//
 // Revision 1.6  2005/08/04 21:48:32  fraggle
 // Turn on compiler optimisation and warning options
 // Add SDL_mixer sound code
@@ -54,7 +57,7 @@
 //-----------------------------------------------------------------------------

 static const char
-rcsid[] = "$Id: m_misc.c 39 2005-08-04 21:48:32Z fraggle $";
+rcsid[] = "$Id: m_misc.c 82 2005-09-07 12:34:47Z fraggle $";

 #include <sys/stat.h>
 #include <sys/types.h>
@@ -238,6 +241,16 @@ extern	int	numChannels;

 extern char*	chat_macros[];

+// dos specific options: these are unused but should be maintained
+// so that the config file can be shared between chocolate
+// doom and doom.exe
+
+static int snd_musicdevice;
+static int snd_sfxdevice;
+static int snd_sbport;
+static int snd_sbirq;
+static int snd_sbdma;
+static int snd_mport;

 typedef struct
 {
@@ -284,7 +297,12 @@ default_t	defaults[] =

     {"snd_channels",&numChannels, 3},

-
+    {"snd_musicdevice", &snd_musicdevice, 0},
+    {"snd_sfxdevice", &snd_sfxdevice, 0},
+    {"snd_sbport", &snd_sbport, 0},
+    {"snd_sbirq", &snd_sbirq, 0},
+    {"snd_sbdma", &snd_sbdma, 0},
+    {"snd_mport", &snd_mport, 0},

     {"usegamma",&usegamma, 0},