tachtig: Add some error checking; put output in a new directory.
[svpe-tools.git] / tmd-dump.c
blob2ef63f80a65d514674435ead9ad05d88149d5658
1 #include <stdio.h>
3 #include "tools.h"
5 int main(int argc, char **argv)
7 FILE *fp;
8 u8 tmd[0x2000];
10 fp = fopen(argv[1], "rb");
11 fread(tmd, 1, sizeof tmd, fp);
12 fclose(fp);
14 dump_tmd(tmd);
16 return 0;