Skip to content

Commit

Permalink
Use DEFAULT_DATA_PATH macro in USAGE (SDL1)
Browse files Browse the repository at this point in the history
  • Loading branch information
twojstaryzdomu committed Jul 11, 2022
2 parents 6f82550 + 4af0b51 commit 4493d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static const int DEFAULT_SCALE_FACTOR = 2;

static const char *USAGE =
"Usage: %s [OPTIONS]...\n"
" --datapath=PATH Path to data files (default '.')\n"
" --datapath=PATH Path to data files (default '%s')\n"
" --level=NUM Start at level NUM\n"
" --cheats=MASK Cheats mask\n"
" --startpos=XxY Start at position (X,Y)\n"
Expand Down Expand Up @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) {
g_options.animate_tiles = false;
break;
default:
fprintf(stdout, USAGE, argv[0], DEFAULT_SCALE_FACTOR, ORIG_W, ORIG_H, DEFAULT_JUMP_BUTTON);
fprintf(stdout, USAGE, argv[0], DEFAULT_DATA_PATH, DEFAULT_SCALE_FACTOR, ORIG_W, ORIG_H, DEFAULT_JUMP_BUTTON);
return -1;
}
}
Expand Down

0 comments on commit 4493d52

Please sign in to comment.