Skip to content

Commit

Permalink
The source of the setup program included with DOOM, Final DOOM, Strif…
Browse files Browse the repository at this point in the history
…e, etc.
  • Loading branch information
Travis Bradshaw committed Jan 31, 2012
0 parents commit b126e26
Show file tree
Hide file tree
Showing 608 changed files with 18,133 additions and 0 deletions.
1,149 changes: 1,149 additions & 0 deletions CONFIG.BAK

Large diffs are not rendered by default.

1,149 changes: 1,149 additions & 0 deletions CONFIG.C

Large diffs are not rendered by default.

1,149 changes: 1,149 additions & 0 deletions CONFIG.C~

Large diffs are not rendered by default.

Binary file added CONFIG.OBJ
Binary file not shown.
85 changes: 85 additions & 0 deletions CONTROL.BAK
@@ -0,0 +1,85 @@
//
// Choose which type of controller to use
//
enum {CON_MOUSE,CON_JOY,CON_KEY,CON_MAX};
item_t controlitems[]=
{
{CON_MOUSE, 26,11,28, -1,-1},
{CON_JOY, 26,12,28, -1,-1},
{CON_KEY, 26,13,28, -1,-1}
};
menu_t controlmenu=
{
&controlitems[0],
CON_MOUSE,
CON_MAX,
0x7f
};

int ChooseController (void)
{
short key;
short field;
int rval = 0;

SaveScreen();
DrawPup(&control);

// DEFAULT FIELD ========================================

if (newc.control == C_MOUSE)
field = CON_MOUSE;
else
if (newc.control == C_JOYSTICK)
field = CON_JOY;
else
field = CON_KEY;

controlmenu.startitem = field;
while(1)
{
SetupMenu(&controlmenu);
field = GetMenuInput();
key = menukey;
switch ( key )
{
case KEY_ESC:
rval = -1;
goto func_exit;

case KEY_ENTER:
case KEY_F10:
switch ( field )
{
case CON_KEY:
newc.control = C_KEY;
usemouse = 0;
usejoystick = 0;
goto func_exit;

case CON_MOUSE:
newc.control = C_MOUSE;
usemouse = 1;
usejoystick = 0;
goto func_exit;

case CON_JOY:
newc.control = C_JOYSTICK;
usemouse = 0;
usejoystick = 1;
goto func_exit;

default:
break;
}
break;
}
}

func_exit:

RestoreScreen();
DrawCurrentConfig();
return ( rval );
}

87 changes: 87 additions & 0 deletions CONTROL.C
@@ -0,0 +1,87 @@
//
// Choose which type of controller to use
//
#include "main.h"

enum {CON_MOUSE,CON_JOY,CON_KEY,CON_MAX};
item_t controlitems[]=
{
{CON_MOUSE, 26,11,28, -1,-1},
{CON_JOY, 26,12,28, -1,-1},
{CON_KEY, 26,13,28, -1,-1}
};
menu_t controlmenu=
{
&controlitems[0],
CON_MOUSE,
CON_MAX,
0x7f
};

int ChooseController (void)
{
short key;
short field;
int rval = 0;

SaveScreen();
DrawPup(&control);

// DEFAULT FIELD ========================================

if (newc.control == C_MOUSE)
field = CON_MOUSE;
else
if (newc.control == C_JOYSTICK)
field = CON_JOY;
else
field = CON_KEY;

controlmenu.startitem = field;
while(1)
{
SetupMenu(&controlmenu);
field = GetMenuInput();
key = menukey;
switch ( key )
{
case KEY_ESC:
rval = -1;
goto func_exit;

case KEY_ENTER:
case KEY_F10:
switch ( field )
{
case CON_KEY:
newc.control = C_KEY;
usemouse = 0;
usejoystick = 0;
goto func_exit;

case CON_MOUSE:
newc.control = C_MOUSE;
usemouse = 1;
usejoystick = 0;
goto func_exit;

case CON_JOY:
newc.control = C_JOYSTICK;
usemouse = 0;
usejoystick = 1;
goto func_exit;

default:
break;
}
break;
}
}

func_exit:

RestoreScreen();
DrawCurrentConfig();
return ( rval );
}

Binary file added CONTROL.OBJ
Binary file not shown.
57 changes: 57 additions & 0 deletions DEBUG.BAK
@@ -0,0 +1,57 @@
#include <stdlib.h>
#include <conio.h>
#include "setup.h"

#ifdef DEBUG
pup_t far *puplist[]=
{
&askpres,
&cmodem,
&consel,
&control,
&cserial,
&cwarp,
&gusirqer,
&idcard,
&idjoysel,
&idkeysel,
&idmain2,
&idmousel,
&irqerr,
&macros,
&mcard,
&midiport,
&modemchs,
&modsave,
&mousentr,
&mouspres,
&netplay,
&netplay2,
&netsave,
&netserr,
&netwk2,
&numdig,
&phonelst,
&quitwin,
&sbdma,
&sbirq,
&sbport,
&sersave,
&show,
&sockerr,
&title,
NULL
};

void ShowAllPups(void)
{
int i;

i = 0;
while(puplist[i])
{
DrawPup(puplist[i++]);
getch();
}
}
#endif
57 changes: 57 additions & 0 deletions DEBUG.C
@@ -0,0 +1,57 @@
#include <stdlib.h>
#include <conio.h>
#include "setup.h"

#ifdef DEBUG
pup_t far *puplist[]=
{
&askpres,
&cmodem,
&consel,
&control,
&cserial,
&cwarp,
&gusirqer,
&idcard,
&idjoysel,
&idkeysel,
&idmain2,
&idmousel,
&irqerr,
&macros,
&mcard,
&midiport,
&modemchs,
&modsave,
&mousentr,
&mouspres,
&netplay,
&netplay2,
&netsave,
&netserr,
&netwk2,
&numdig,
&phonelst,
&quitwin,
&sbdma,
&sbirq,
&sbport,
&sersave,
&show,
&sockerr,
&title,
NULL
};

void ShowAllPups(void)
{
int i;

i = 0;
while(puplist[i])
{
DrawPup(puplist[i++]);
getch();
}
}
#endif
Binary file added DEBUG.OBJ
Binary file not shown.

0 comments on commit b126e26

Please sign in to comment.