You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #107848 from bruvzg/scn_uid_dec
Always decode `--scene` argument UID path.
This commit is contained in:
@@ -3882,7 +3882,7 @@ int Main::start() {
|
|||||||
} else if (E->get() == "--scene") {
|
} else if (E->get() == "--scene") {
|
||||||
E = E->next();
|
E = E->next();
|
||||||
if (E) {
|
if (E) {
|
||||||
game_path = E->get();
|
game_path = ResourceUID::ensure_path(E->get());
|
||||||
} else {
|
} else {
|
||||||
ERR_FAIL_V_MSG(EXIT_FAILURE, "Missing scene path, aborting.");
|
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
|
// or other file extensions without trouble. This can be used to implement
|
||||||
// "drag-and-drop onto executable" logic, which can prove helpful
|
// "drag-and-drop onto executable" logic, which can prove helpful
|
||||||
// for non-game applications.
|
// for non-game applications.
|
||||||
game_path = E->get();
|
game_path = scene_path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Then parameters that have an argument to the right.
|
// Then parameters that have an argument to the right.
|
||||||
|
|||||||
Reference in New Issue
Block a user