summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2018-05-12 12:51:41 +0200
committerLeon Krause <lk@leonkrause.com>2018-05-12 13:10:13 +0200
commit5b4974f171ea1a8467049c85cd0c3c5011e39c18 (patch)
treef77b88aa2bea91e8c969b3a98144a7f58d777642
parent3bdeb6f8a88df45d3fa9d8908204458b39be95ed (diff)
Remove dead branch in command line logic
-rw-r--r--main/main.cpp17
1 files changed, 1 insertions, 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;