/*
 * Kangaroo Punch MultiPlayer Game Server Mark II
 * Copyright (C) 2020-2021  Scott Duensing
 *
 * This program 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.
 *
 * This program 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 <https://www.gnu.org/licenses/>.
 *
 */


#include <stdio.h>

#define MEMWATCH
#include "memwatch/memwatch.h"

#include "cache.h"

#include "stddclmr.h"


#define CLIENT  "/home/scott/code/kpmpgsmkii/client/in/"
#define FONT    "/home/scott/code/kpmpgsmkii/font/out/"
#define OUT     "/home/scott/code/kpmpgsmkii/precache/out/"

int main(int argc, char *argv[]) {

	CachePreMakeListT list[] = {
		{ CLIENT"welcome/dconnect.png", "welcome:connect.png" },
		{ CLIENT"welcome/ddialing.png", "welcome:dialing.png" },
		{ CLIENT"welcome/dinit.png",    "welcome:init.png"    },
		{ CLIENT"welcome/logo.png",     "welcome:logo.png"    },
		{ CLIENT"gui/mbie32.png",       "gui:exclamation.png" },
		{ CLIENT"gui/mbii32.png",       "gui:information.png" },
		{ CLIENT"gui/mbim32.png",       "gui:message.png"     },
		{ CLIENT"gui/mbiq32.png",       "gui:question.png"    },
		{ CLIENT"gui/mbiw32.png",       "gui:warning.png"     },
		{ CLIENT"gui/mouse.png",        "gui:mouse.png"       },
		{ FONT"vga8x14.dat",            "gui:vga8x14.dat"     },
		{ NULL,                         NULL                  }
	 };

	(void)argc;
	(void)argv;

	// Also run optipng -o7 on images.

	cachePrePack(OUT"client.pre", list);
	cachePreUnpack(OUT"client.pre");

	return 0;
}
