#include #include #include "txd.h" int main(int argc, char *argv[]) { int i; Texture *tl; FILE *txd; if (argc < 2) exit(1); if ((txd = fopen(argv[1], "rb")) == NULL) exit(2); i = ReadTxd(0, txd, &tl); DestroyTxd(tl, i); fclose(txd); return 0; }