Skip to content

Commit b310244

Browse files
committed
Merge pull request #107848 from bruvzg/scn_uid_dec
Always decode `--scene` argument UID path.
2 parents 75958c9 + f285bf2 commit b310244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3882,7 +3882,7 @@ int Main::start() {
38823882
} else if (E->get() == "--scene") {
38833883
E = E->next();
38843884
if (E) {
3885-
game_path = E->get();
3885+
game_path = ResourceUID::ensure_path(E->get());
38863886
} else {
38873887
ERR_FAIL_V_MSG(EXIT_FAILURE, "Missing scene path, aborting.");
38883888
}
@@ -3901,7 +3901,7 @@ int Main::start() {
39013901
// or other file extensions without trouble. This can be used to implement
39023902
// "drag-and-drop onto executable" logic, which can prove helpful
39033903
// for non-game applications.
3904-
game_path = E->get();
3904+
game_path = scene_path;
39053905
}
39063906
}
39073907
// Then parameters that have an argument to the right.

0 commit comments

Comments
 (0)