X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpalettec.c;h=6756d1aae61dbd43c672a1f1309212ee5dc90fa0;hb=73a484ef8bbdbcb82bde5580b77001e7c54265f8;hp=ba5e0b28a39eee47acd7c1220ef84da9e353ecac;hpb=7f91b5123539e8fb1fee0c147526b6950aea481b;p=16.git diff --git a/src/palettec.c b/src/palettec.c index ba5e0b28..6756d1aa 100755 --- a/src/palettec.c +++ b/src/palettec.c @@ -1,37 +1,43 @@ -/* 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. - * - */ - +/* 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() { +main(int argc, char *argv[]) +{ byte *pal; + byte *bakapee; + + bakapee = malloc(64); + if(argv[1]) bakapee = argv[1]; + else bakapee = "data/default.pal"; modexEnter(); pal = modexNewPal(); modexPalSave(pal); - modexSavePalFile("data/default.pal", pal); + modexSavePalFile(bakapee, pal); modexLeave();