SDL: Fix showing version number (fixes #794)
Vicki Pfau vi@endrift.com
Wed, 12 Jul 2017 09:01:34 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -76,6 +76,7 @@ - Qt: Disable "New multiplayer window" when MAX_GBAS is reached (fixes mgba.io/i/107)
- Qt: Fix game unpausing after frame advancing and refocusing - SDL: Fix game crash check - SDL: Fix race condition with audio thread when starting + - SDL: Fix showing version number - Test: Fix crash when loading invalid file - Test: Fix crash when fuzzing fails to load a file - Test: Don't rely on core for frames elapsed
M
src/platform/sdl/main.c
→
src/platform/sdl/main.c
@@ -56,7 +56,7 @@ struct mSubParser subparser;
initParserForGraphics(&subparser, &graphicsOpts); bool parsed = parseArguments(&args, argc, argv, &subparser); - if (!args.fname) { + if (!args.fname && !args.showVersion) { parsed = false; } if (!parsed || args.showHelp) {