]> 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 47ef9b7b78207d90545db3c51d5d84043b386041..b2acec13763597edfd912d1461b82f605965490e 100755 (executable)
@@ -58,6 +58,14 @@ void Startup16(global_game_variables_t *gvar)
                printf("This program requires VGA or higher graphics hardware\n");\r
                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
@@ -66,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
@@ -143,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