]> icculus.org git repositories - btb/d2x.git/blob - arch/linux_init.c
add --enable-xploader, support arch/linux subdir, fix NASMFLAGS.
[btb/d2x.git] / arch / linux_init.c
1 /*
2  * $Source: /cvs/cvsroot/d2x/arch/linux_init.c,v $
3  * $Revision: 1.4 $
4  * $Author: bradleyb $
5  * $Date: 2001-01-29 13:35:08 $
6  *
7  * linux init.c - added Matt Mueller 9/6/98
8  *
9  * $Log: not supported by cvs2svn $
10  */
11
12 #ifdef HAVE_CONFIG_H
13 #include <conf.h>
14 #endif
15
16 #include <stdlib.h>
17 #include <stdio.h>
18 #include "pstypes.h"
19 #include "console.h"
20 #include "text.h"
21 #include "event.h"
22 #include "error.h"
23 #include "joy.h"
24 #include "args.h"
25
26 extern void arch_sdl_init();
27 extern void arch_svgalib_init();
28 extern void key_init();
29 extern int com_init();
30 extern void timer_init();
31
32 void arch_init_start()
33 {
34
35 }
36
37 void arch_init()
38 {
39  // Initialise the library
40         arch_sdl_init();
41 #ifdef SVGALIB_INPUT
42         arch_svgalib_init();
43 #endif
44         if (!FindArg( "-nojoystick" ))  {
45                 con_printf(CON_VERBOSE, "\n%s", TXT_VERBOSE_6);
46                 joy_init();
47         }
48         //added 06/09/99 Matt Mueller - fix nonetwork compile
49 #ifdef NETWORK
50         //end addition -MM
51 //added on 10/19/98 by Victor Rachels to add serial support (from DPH)
52     if(!(FindArg("-noserial")))
53      com_init();
54 //end this section addition - Victor 
55         //added 06/09/99 Matt Mueller - fix nonetwork compile
56 #endif
57         //end addition -MM
58     key_init();
59 }