]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_tail_.c
exmmtest.exe \> exmmtest.l16 == BOOM
[16.git] / src / lib / 16_tail_.c
1 #include "src/lib/16_tail.h"\r
2 \r
3 void    TL_VidInit(global_game_variables_t *gvar)\r
4 {\r
5         start_timer(gvar);\r
6 \r
7         // DOSLIB: check our environment\r
8         probe_dos();\r
9 \r
10         // DOSLIB: what CPU are we using?\r
11         // NTS: I can see from the makefile Sparky4 intends this to run on 8088 by the -0 switch in CFLAGS.\r
12         //        So this code by itself shouldn't care too much what CPU it's running on. Except that other\r
13         //        parts of this project (DOSLIB itself) rely on CPU detection to know what is appropriate for\r
14         //        the CPU to carry out tasks. --J.C.\r
15         cpu_probe();\r
16 \r
17         // DOSLIB: check for VGA\r
18         if (!probe_vga()) {\r
19                 printf("VGA probe failed\n");\r
20                 return;\r
21         }\r
22         // hardware must be VGA or higher!\r
23         if (!(vga_state.vga_flags & VGA_IS_VGA)) {\r
24                 printf("This program requires VGA or higher graphics hardware\n");\r
25                 return;\r
26         }\r
27 \r
28         if (_DEBUG_INIT() == 0) {\r
29 #ifdef DEBUGSERIAL\r
30                 //printf("WARNING: Failed to initialize DEBUG output\n");\r
31 #endif\r
32         }\r
33         _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log\r
34         _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U);\r
35 \r
36         textInit();\r
37 \r
38         // get old video mode\r
39         //in.h.ah = 0xf;\r
40         //int86(0x10, &in, &out);\r
41         if(!gvar->video.old_mode) gvar->video.old_mode = vgaGetMode();//out.h.al;\r
42         gvar->video.VL_Initiated = 1;\r
43 }\r