1 #include "src/lib/16_tail.h"
\r
3 void TL_VidInit(global_game_variables_t *gvar)
\r
7 // DOSLIB: check our environment
\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
17 // DOSLIB: check for VGA
\r
19 printf("VGA probe failed\n");
\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
28 if (_DEBUG_INIT() == 0) {
\r
30 //printf("WARNING: Failed to initialize DEBUG output\n");
\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
38 // get old video mode
\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