Преглед изворни кода

Always decode `--scene` argument UID path.

Pāvels Nadtočajevs пре 1 месец
родитељ
комит
f285bf2632
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      main/main.cpp

+ 2 - 2
main/main.cpp

@@ -3882,7 +3882,7 @@ int Main::start() {
 		} else if (E->get() == "--scene") {
 			E = E->next();
 			if (E) {
-				game_path = E->get();
+				game_path = ResourceUID::ensure_path(E->get());
 			} else {
 				ERR_FAIL_V_MSG(EXIT_FAILURE, "Missing scene path, aborting.");
 			}
@@ -3901,7 +3901,7 @@ int Main::start() {
 				// or other file extensions without trouble. This can be used to implement
 				// "drag-and-drop onto executable" logic, which can prove helpful
 				// for non-game applications.
-				game_path = E->get();
+				game_path = scene_path;
 			}
 		}
 		// Then parameters that have an argument to the right.