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