From f99d1e2a2877e3eed5ee2b8ba80df3f11b6e6326 Mon Sep 17 00:00:00 2001 From: Slyphax-Hermes Date: Sat, 17 Oct 2026 21:53:37 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20Selbst-Restart=20(Live-Befund=2017.10.):?= =?UTF-8?q?=20Update-Restart=20ging=20auf=20den=20Godot-Editor=20statt=20d?= =?UTF-8?q?ie=20Map-Editor-APP=20=E2=80=94=20self=5Frestart=5Fargs=20ohne?= =?UTF-8?q?=20--editor=20(die=20App=20startet=20=C3=BCber=20main.tscn=20mi?= =?UTF-8?q?t=20nacktem=20--path),=20Kommentar=20+=20test=5Fupdater=20angep?= =?UTF-8?q?asst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/updater.gd | 9 +++++---- tests/test_updater.gd | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/editor/updater.gd b/src/editor/updater.gd index e0c470a..322e5bf 100644 --- a/src/editor/updater.gd +++ b/src/editor/updater.gd @@ -246,8 +246,9 @@ static func resolve_restart(cfg: ConfigFile = null) -> Dictionary: return {"mode": "self", "argv": PackedStringArray()} -## Argumente für den Selbst-Restart: dieselbe Godot-Binary öffnet denselben -## Projektordner im Editor-Modus („--editor“ ist nötig — ein nacktes -## „--path“ würde das Projekt als SPIEL starten, nicht als Editor). +## Argumente für den Selbst-Restart: dieselbe Godot-Binary startet die +## Map-Editor-APP über deren main.tscn (kein "--editor" — das würde den +## Godot-Editor-Shell öffnen, nicht unsere App; Live-Befund 17.10.: +## Nach dem Selbst-Update ging der Godot-Editor auf statt dem Map Editor). static func self_restart_args(project_dir: String) -> PackedStringArray: - return PackedStringArray(["--editor", "--path", project_dir]) \ No newline at end of file + return PackedStringArray(["--path", project_dir]) \ No newline at end of file diff --git a/tests/test_updater.gd b/tests/test_updater.gd index c937e93..6e598f1 100644 --- a/tests/test_updater.gd +++ b/tests/test_updater.gd @@ -223,5 +223,5 @@ func _run_tests() -> void: _check((resolved2["argv"] as PackedStringArray).is_empty(), "mode self: UI baut die Selbst-Restart-Argumente selbst") var self_args := EditorUpdater.self_restart_args("/pfad/zum/klon") - _check(str(self_args[0]) == "--editor" and str(self_args[2]) == "/pfad/zum/klon", - "Selbst-Restart: --editor --path (sonst startet das Projekt als SPIEL)") + _check(str(self_args[0]) == "--path" and str(self_args[1]) == "/pfad/zum/klon", + "Selbst-Restart: --path (startet die Map-Editor-APP, nicht die Godot-Editor-Shell)")