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