git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit ea41a0a07bfea80806d996b3c79a5b6d6be55a31
parent 2491591610a6e22a4d0b0ad3c551340f376e4bb9
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Fri,  8 Mar 2024 00:16:55 -0800

Merge pull request #632 from bbbbbr/png2asset/dash_o_empty_crash

png2asset: additional -o error if next argument appears to be an opti…
Diffstat:
Mgbdk-support/png2asset/process_arguments.cpp3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/gbdk-support/png2asset/process_arguments.cpp b/gbdk-support/png2asset/process_arguments.cpp @@ -174,6 +174,9 @@ int processPNG2AssetArguments(int argc, char* argv[], PNG2AssetArguments* args) if ((i + 1) >= argc) { printf("Error: -c or -o requires a filename, none specified\n"); return 1; + } else if (argv[i+1][0] == '-') { + printf("Error: next argument after -o looks like an option instead of a filename (\"%s\")\n", argv[i + 1]); + return 1; } args->output_filename = argv[++i];

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.