]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tail.c
Merge branch 'master' of github.com:sparky4/16
[16.git] / src / lib / 16_tail.c
index 6d66ec1c0e39d7f85d904e1fc48f9c69a78f198f..b2acec13763597edfd912d1461b82f605965490e 100755 (executable)
@@ -37,6 +37,7 @@
 \r
 void Startup16(global_game_variables_t *gvar)\r
 {\r
+#ifdef __WATCOMC__\r
        // DOSLIB: check our environment\r
        probe_dos();\r
 \r
@@ -58,6 +59,14 @@ void Startup16(global_game_variables_t *gvar)
                return;\r
        }\r
 \r
+       if (_DEBUG_INIT() == 0) {\r
+#ifdef DEBUGSERIAL\r
+               printf("WARNING: Failed to initialize DEBUG output\n");\r
+#endif\r
+       }\r
+       _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
+       _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U);\r
+#endif\r
        gvar->mm.mmstarted=0;\r
        gvar->pm.PMStarted=0;\r
        MM_Startup(gvar);\r
@@ -65,6 +74,10 @@ void Startup16(global_game_variables_t *gvar)
        PM_Startup(gvar);\r
        PM_UnlockMainMem(gvar);\r
        CA_Startup(gvar);\r
+#ifdef __WATCOMC__\r
+       start_timer(gvar);\r
+\r
+#endif\r
 \r
 }\r
 \r
@@ -142,8 +155,8 @@ void DebugMemory_(global_game_variables_t *gvar, boolean q)
 \r
 void Quit (char *error)\r
 {\r
-       unsigned        finscreen;\r
-       memptr  screen;\r
+       //unsigned        finscreen;\r
+       memptr  screen=0;\r
        union REGS in, out;\r
 \r
        //ClearMemory ();\r