瀏覽代碼

Fix custom resource path look-up per command line

Leon Krause 7 年之前
父節點
當前提交
942f6dfbd6
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      main/main.cpp

+ 4 - 1
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 {