X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2F16.c;h=6ad5334f03d1566a7554375400166e9ee337a7e0;hb=bcc5413065af54b5895f24f0c89a518146d6d256;hp=5ab85e094c9c0b7912b077741d3296efcaee9c9c;hpb=4abdbc1a7b9643df0fcc8762c60ef874cb4de63d;p=16.git diff --git a/src/16.c b/src/16.c index 5ab85e09..6ad5334f 100755 --- a/src/16.c +++ b/src/16.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -27,7 +27,6 @@ engi_stat_t engi_stat; const char *cpus; byte *dpal, *gpal; player_t player[MaxPlayers]; -//page_t screen; void main(int argc, char *argv[]) @@ -53,19 +52,24 @@ main(int argc, char *argv[]) return; } - //screen = modexDefaultPage(); + 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); + engi_stat = ENGI_RUN; - //textInit(); + textInit(); /* save the palette */ dpal = modexNewPal(); modexPalSave(dpal); -// modexFadeOff(4, dpal); - //printf("pal load\n"); - //gpal = modexNewPal(); - /*modexPalSave(gpal); - modexSavePalFile("data/g.pal", gpal);*/ -//0000 printf("wwww loop wwww\n"); + modexFadeOff(4, dpal); + gpal = modexNewPal(); + modexPalSave(gpal); + modexSavePalFile("data/g.pal", gpal); VGAmodeX(1, 1, &gvar); // modexPalBlack(); //so player will not see loadings~ IN_Startup(); @@ -77,6 +81,7 @@ main(int argc, char *argv[]) IN_ReadControl(0,&player); if(IN_KeyDown(sc_Escape)) engi_stat = ENGI_EXIT; shinku(&gvar); + _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U); } switch(detectcpu()) { @@ -90,5 +95,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); }