From fd443082a7c288c1defce49b95cb6f49d555a371 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 21 Mar 2016 17:11:39 +0100 Subject: [PATCH] Fix "retroarch --verbose". We want to go straight to menu in this case, so make a special case for this fairly common pattern. --- retroarch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index c6e1563c8d..a80b3613b1 100644 --- a/retroarch.c +++ b/retroarch.c @@ -682,7 +682,11 @@ static void parse_input(int argc, char *argv[]) runloop_ctl(RUNLOOP_CTL_UNSET_OVERRIDES_ACTIVE, NULL); - if (argc < 2) + /* As a special case, allow retroarch --verbose to go straight to menu as well. + * It's a fairly common pattern and verbose alone shouldn't alter other behavior. */ + if (argc < 2 || + (argc == 2 && + (!strcmp(argv[1], "--verbose") || !strcmp(argv[1], "-v")))) { current_core_type = CORE_TYPE_DUMMY; return;