summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2005-09-07 12:34:47 +0000
committerSimon Howard2005-09-07 12:34:47 +0000
commitf0a776f06962adb498253b0e5bbdc3acbaa49864 (patch)
tree580c45cae2edc3554cf86d8729093b00e9f6148a /src
parent55b0f32c737cb2781056309517c21b69d1893e3d (diff)
downloadchocolate-doom-f0a776f06962adb498253b0e5bbdc3acbaa49864.tar.gz
chocolate-doom-f0a776f06962adb498253b0e5bbdc3acbaa49864.tar.bz2
chocolate-doom-f0a776f06962adb498253b0e5bbdc3acbaa49864.zip
Maintain dos-specific options in config file
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 82
Diffstat (limited to 'src')
-rw-r--r--src/m_misc.c24
1 files 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},