From 5b4974f171ea1a8467049c85cd0c3c5011e39c18 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Sat, 12 May 2018 12:51:41 +0200 Subject: Remove dead branch in command line logic --- main/main.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index c9e1c7a3aa..cf1db2b85e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -672,22 +672,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } else if (I->get() == "--disable-crash-handler") { OS::get_singleton()->disable_crash_handler(); } else { - - //test for game path - bool gpfound = false; - - if (!I->get().begins_with("-") && game_path == "") { - DirAccess *da = DirAccess::open(I->get()); - if (da != NULL) { - game_path = I->get(); - gpfound = true; - memdelete(da); - } - } - - if (!gpfound) { - main_args.push_back(I->get()); - } + main_args.push_back(I->get()); } I = N; -- cgit v1.2.3