X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_tail.c;h=b2acec13763597edfd912d1461b82f605965490e;hb=d337fd88c992c80c68263f66a2d22f3ce2ffefa1;hp=6d66ec1c0e39d7f85d904e1fc48f9c69a78f198f;hpb=14c5716ee17d95f1c730de73ed462f95e8b41692;p=16.git diff --git a/src/lib/16_tail.c b/src/lib/16_tail.c index 6d66ec1c..b2acec13 100755 --- a/src/lib/16_tail.c +++ b/src/lib/16_tail.c @@ -37,6 +37,7 @@ void Startup16(global_game_variables_t *gvar) { +#ifdef __WATCOMC__ // DOSLIB: check our environment probe_dos(); @@ -58,6 +59,14 @@ void Startup16(global_game_variables_t *gvar) return; } + if (_DEBUG_INIT() == 0) { +#ifdef DEBUGSERIAL + printf("WARNING: Failed to initialize DEBUG output\n"); +#endif + } + _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log + _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U); +#endif gvar->mm.mmstarted=0; gvar->pm.PMStarted=0; MM_Startup(gvar); @@ -65,6 +74,10 @@ void Startup16(global_game_variables_t *gvar) PM_Startup(gvar); PM_UnlockMainMem(gvar); CA_Startup(gvar); +#ifdef __WATCOMC__ + start_timer(gvar); + +#endif } @@ -142,8 +155,8 @@ void DebugMemory_(global_game_variables_t *gvar, boolean q) void Quit (char *error) { - unsigned finscreen; - memptr screen; + //unsigned finscreen; + memptr screen=0; union REGS in, out; //ClearMemory ();