mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
Cocoa: avoid displaying window when command-line contains '-h' or '-help'
There was already a check in place to avoid displaying a window in certain modes such as vnc, nographic or curses. Add a check for '-h' and '-help' to avoid displaying a window for a split- second before showing the usage information. Signed-off-by: Alexandre Raymond <cerbere@gmail.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
This commit is contained in:
parent
d9cbb0f3ed
commit
9851484f3d
@ -872,7 +872,8 @@ int main (int argc, const char * argv[]) {
|
||||
if (opt[1] == '-') {
|
||||
opt++;
|
||||
}
|
||||
if (!strcmp(opt, "-vnc") ||
|
||||
if (!strcmp(opt, "-h") || !strcmp(opt, "-help") ||
|
||||
!strcmp(opt, "-vnc") ||
|
||||
!strcmp(opt, "-nographic") ||
|
||||
!strcmp(opt, "-version") ||
|
||||
!strcmp(opt, "-curses")) {
|
||||
|
Loading…
Reference in New Issue
Block a user