]> icculus.org git repositories - btb/d2x.git/blob - arch/win32/mingw_init.c
portability
[btb/d2x.git] / arch / win32 / mingw_init.c
1 /*
2  * $Source: /cvs/cvsroot/d2x/arch/win32/mingw_init.c,v $
3  * $Revision: 1.1 $
4  * $Author: bradleyb $
5  * $Date: 2001-10-19 09:01:56 $
6  *
7  * mingw_init.c - Basically same as linux init.c
8  *
9  * $Log: not supported by cvs2svn $
10  *
11  */
12
13 #ifdef HAVE_CONFIG_H
14 #include <conf.h>
15 #endif
16
17 #include <stdlib.h>
18 #include <stdio.h>
19 #include "pstypes.h"
20 #include "console.h"
21 #include "text.h"
22 #include "event.h"
23 #include "error.h"
24 #include "joy.h"
25 #include "args.h"
26
27 extern void arch_sdl_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         if (!FindArg( "-nojoystick" ))  {
42                 con_printf(CON_VERBOSE, "\n%s", TXT_VERBOSE_6);
43                 joy_init();
44         }
45         //added 06/09/99 Matt Mueller - fix nonetwork compile
46 #ifdef NETWORK
47         //end addition -MM
48 //added on 10/19/98 by Victor Rachels to add serial support (from DPH)
49     if(!(FindArg("-noserial")))
50      com_init();
51 //end this section addition - Victor 
52         //added 06/09/99 Matt Mueller - fix nonetwork compile
53 #endif
54         //end addition -MM
55     key_init();
56 }