blob: cf3966d30dd7982737b02271a18801f2827e8545 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <stdio.h>
#include "tile_list_processor.h"
#include <SDL_main.h>
int main(int argc, char **argv)
{
if (argc != 2)
{
fprintf(stderr, "Usage: %s (tile_list.txt)\n", argv[0]);
return -1;
}
tile_list_processor proc;
if (!proc.process_list(argv[1]))
{
fprintf(stderr, "Error: failed to process '%s'\n", argv[1]);
return -2;
}
if (!proc.write_data())
{
fprintf(stderr, "Error: failed to write data for '%s'\n", argv[1]);
return -3;
}
return 0;
}
|