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