X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpalettec.c;h=4577c94cbd4259bf1a46ce2a918a2083cbd7e20e;hb=a565be31ce92d6168ae6983042da75b0b683e52b;hp=ba5e0b28a39eee47acd7c1220ef84da9e353ecac;hpb=d9e8696a3a67052729b1b783f0f3f1b0d20d9e9a;p=16.git diff --git a/src/palettec.c b/src/palettec.c old mode 100644 new mode 100755 index ba5e0b28..4577c94c --- a/src/palettec.c +++ b/src/palettec.c @@ -1,38 +1,35 @@ -/* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 - * - * This file is part of Project 16. - * - * Project 16 is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * Project 16 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see , or - * write to the Free Software Foundation, Inc., 51 Franklin Street, - * Fifth Floor, Boston, MA 02110-1301 USA. - * - */ - -#include "src/lib/modex16.h" - -void -main() { - byte *pal; - - modexEnter(); - - pal = modexNewPal(); - modexPalSave(pal); - - modexSavePalFile("data/default.pal", pal); - - modexLeave(); +/* Project 16 Source Code~ + * Copyright (C) 2012-2019 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ +#include "src/lib/16_vl.h" +void main(int argc, char *argv[]) { + static global_game_variables_t gvar; char bakapee[64] = "data/default.pal"; + if(argv[1]) strcpy(bakapee, argv[1]); modexPalSave(&gvar.video.palette);// modexPalSave(&gvar.video.dpal); modexFadeOff(4, &gvar.video.dpal); modexPalBlack(); + TL_VidInit(&gvar); VGAmodeX(1, 0, &gvar); + modexSavePalFile(bakapee, &gvar.video.palette); + PALPROGRAMSNEWPAGE + VL_ShowPage(&gvar.video.page[0], 1, 0); + modexpdump(0, &gvar); + while(!kbhit()){ /*VL_modexPalScramble(&gvar.video.palette);*/ } +// modexPalSave(&gvar.video.palette); + VGAmodeX(0, 0, &gvar); }