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