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)")