diff options
author | Leon Krause <lk@leonkrause.com> | 2018-05-10 20:18:43 +0200 |
---|---|---|
committer | Leon Krause <lk@leonkrause.com> | 2018-05-10 20:18:43 +0200 |
commit | 942f6dfbd66c1d15a45ef6447fd883103d9678a8 (patch) | |
tree | 1bde3f9ee51459a2b521f7585ffa99ff6c6888e4 /main/main.cpp | |
parent | af7926cf9863343a43b3673ab2d3fbe27f3e88ea (diff) |
Fix custom resource path look-up per command line
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 1c5540fd19..dfc75f1b29 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -337,7 +337,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph String video_driver = ""; String audio_driver = ""; - String game_path = "."; + String game_path; bool upwards = false; String debug_mode; String debug_host; @@ -693,6 +693,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph I = N; } + if (game_path.empty()) { + game_path = "."; + } if (globals->setup(game_path, main_pack, upwards) == OK) { found_project = true; } else { |