2
0
Эх сурвалжийг харах

Revert "Fix custom resource path look-up per command line"

This reverts commit 942f6dfbd66c1d15a45ef6447fd883103d9678a8.
Leon Krause 7 жил өмнө
parent
commit
3bdeb6f8a8
1 өөрчлөгдсөн 1 нэмэгдсэн , 4 устгасан
  1. 1 4
      main/main.cpp

+ 1 - 4
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 video_driver = "";
 	String audio_driver = "";
 	String audio_driver = "";
-	String game_path;
+	String game_path = ".";
 	bool upwards = false;
 	bool upwards = false;
 	String debug_mode;
 	String debug_mode;
 	String debug_host;
 	String debug_host;
@@ -693,9 +693,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
 		I = N;
 		I = N;
 	}
 	}
 
 
-	if (game_path.empty()) {
-		game_path = ".";
-	}
 	if (globals->setup(game_path, main_pack, upwards) == OK) {
 	if (globals->setup(game_path, main_pack, upwards) == OK) {
 		found_project = true;
 		found_project = true;
 	} else {
 	} else {