X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2F16.c;h=380c3359bf7d681dfeeb3e92a4fa1a43088903c0;hb=9fae6d1ef0ebd44690958e072f400edde9262208;hp=27c17a58c57641cb14d8324a26b040567f53b8d0;hpb=0b27dec43b461090fb2b9770f031dd230a9a0f75;p=16.git diff --git a/src/16.c b/src/16.c index 27c17a58..380c3359 100755 --- a/src/16.c +++ b/src/16.c @@ -53,28 +53,37 @@ main(int argc, char *argv[]) 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 + //screen = modexDefaultPage(); engi_stat = ENGI_RUN; - //textInit(); + textInit(); /* save the palette */ dpal = modexNewPal(); modexPalSave(dpal); - modexFadeOff(4, dpal); +// modexFadeOff(4, dpal); //printf("pal load\n"); //gpal = modexNewPal(); /*modexPalSave(gpal); modexSavePalFile("data/g.pal", gpal);*/ - printf("wwww loop wwww\n"); +//0000 printf("wwww loop wwww\n"); VGAmodeX(1, 1, &gvar); - modexPalBlack(); //so player will not see loadings~ +// modexPalBlack(); //so player will not see loadings~ IN_Startup(); IN_Default(0,&player,ctrl_Joystick); //modexprint(&screen, 32, 32, 1, 2, 0, "a", 1); + start_timer(&gvar); while(ENGI_EXIT != engi_stat) { IN_ReadControl(0,&player); if(IN_KeyDown(sc_Escape)) engi_stat = ENGI_EXIT; + shinku(&gvar); } switch(detectcpu()) { @@ -88,5 +97,5 @@ main(int argc, char *argv[]) printf("version %s\n", VERSION); printf("detected CPU type: %s\n", cpus); IN_Shutdown(); - modexFadeOn(4, dpal); +// modexFadeOn(4, dpal); }