SDL: Fix showing version number (fixes #794)

This commit is contained in:
Vicki Pfau 2017-07-12 09:01:34 -07:00
parent ac848f8930
commit dc60c28bf1
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ Bugfixes:
- 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

View File

@ -56,7 +56,7 @@ int main(int argc, char** argv) {
initParserForGraphics(&subparser, &graphicsOpts);
bool parsed = parseArguments(&args, argc, argv, &subparser);
if (!args.fname) {
if (!args.fname && !args.showVersion) {
parsed = false;
}
if (!parsed || args.showHelp) {