From f285bf2632d89b07135b34d4306203036e323581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Sun, 22 Jun 2025 17:12:39 +0300 Subject: [PATCH] Always decode `--scene` argument UID path. --- main/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index 4707c22ef984..13ec7d3f4b24 100644 --- a/main/main.cpp +++ b/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.