git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit a4a8ad00d59d62eb0122c966ff79b4b4e7e3f308
parent 0dff3ef144c450d0ef0dbec0461afc8cc22223ba
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu,  6 May 2021 00:26:45 +0300

Display usage on invalid options

Diffstat:
MSDL/main.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SDL/main.c b/SDL/main.c @@ -644,7 +644,7 @@ int main(int argc, char **argv) bool fullscreen = get_arg_flag("--fullscreen", &argc, argv); bool nogl = get_arg_flag("--nogl", &argc, argv); - if (argc > 2) { + if (argc > 2 || (argc == 2 && argv[1][0] == '-')) { fprintf(stderr, "Usage: %s [--fullscreen] [--nogl] [rom]\n", argv[0]); exit(1); }

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