summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-04-09 14:56:12 +0200
committerkdx <kikoodx@paranoici.org>2023-04-09 14:56:12 +0200
commit30cc0028ae12c7846f9558206366ab2cd495dd49 (patch)
tree7f0d3cb9c9b51dbc4b141a0445f703300500c179
parentda990c8b6de5be4019c04d3ac1ccd2ea07dc68a8 (diff)
downloadtiled2c-30cc0028ae12c7846f9558206366ab2cd495dd49.tar.gz
i went overboard
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index e7a67d4..d85b52d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,6 +27,7 @@
static int
process_map(const char *word, cJSON *json)
{
+ (void)word, (void)json;
fprintf(stderr, "process_map TODO\n");
return -1;
}
@@ -190,6 +191,10 @@ process_panic:
int
main(int argc, char **argv)
{
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s <tiled .tsj or .tmj>\n", argv[0]);
+ return 1;
+ }
for (int i = 1; i < argc; i++)
if (process(argv[i]) < 0)
return 1;