Skip to content

Commit

Permalink
Do not return code 2 when help cmd line option has been detected.
Browse files Browse the repository at this point in the history
2 triggers the Linux wrapper script into thinking that the game has crashed. To avoid such confusion, return 0 as usual when exiting from the help page.
  • Loading branch information
AnotherCommander committed May 23, 2024
1 parent 6383492 commit 63efed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ int main(int argc, char *argv[])
"\n"
"Options marked with \"*\" are available only in Test Release configuration.", processName);
OO_SHOW_MSG(s, processName, MB_OK);
OOLog(@"process.args", @"%s option detected, exiting with code 2 after help page has been displayed.", argv[i]);
return 2;
OOLog(@"process.args", @"%s option detected, exiting after help page has been displayed.", argv[i]);
return 0;
}
}

Expand Down

0 comments on commit 63efed7

Please sign in to comment.