X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Ftest.c;h=cb75a0fa248ae81e17025f162fe09489428c057d;hb=9603f9511aceaee61cf873f6ac2b9876a6892fc1;hp=7e554384cb0e54b972d940d5782458a9f4b2807d;hpb=3b6e695f446e1499272e873d20ace03b23e2f0e9;p=16.git diff --git a/src/test.c b/src/test.c index 7e554384..cb75a0fa 100755 --- a/src/test.c +++ b/src/test.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. * @@ -24,6 +24,7 @@ #include "src/lib/modex16.h" #include "src/lib/16_in.h" #include "src/lib/scroll16.h" +#include "src/lib/bakapee.h" global_game_variables_t gvar; player_t player[MaxPlayers]; @@ -38,11 +39,12 @@ void main(int argc, char *argv[]) byte *pal, *pal2; sword bakapee; + word colo=LGQ; + //argument if(argv[1]) bakapee = atoi(argv[1]); else bakapee = 1; - // DOSLIB: check our environment probe_dos(); @@ -64,8 +66,13 @@ void main(int argc, char *argv[]) return; } - /* load our palette */ - modexLoadPalFile("data/default.pal", &pal2); + 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); /* save the palette */ pal = modexNewPal(); @@ -81,6 +88,12 @@ void main(int argc, char *argv[]) VGAmodeX(bakapee, 1, &gvar); modexPalBlack(); + /* load our palette */ + modexLoadPalFile("data/default.pal", &pal2); + + /* overscan show */ + //modexPalOverscan(44+1); + /* set up the page, but with 16 pixels on all borders in offscreen mem */ modexHiganbanaPageSetup(&gvar.video); for(i=0;iHGQ) colo=LGQ; + } +// if(i>PAL_SIZE) i=0; + }//9 if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[pan.pn]); + IN_UserInput(1,1); }//p modexShowPage(&gvar.video.page[pan.pn]); }