Fix Selbst-Restart (Live-Befund 17.10.): Update-Restart ging auf den Godot-Editor statt die Map-Editor-APP — self_restart_args ohne --editor (die App startet über main.tscn mit nacktem --path), Kommentar + test_updater angepasst
This commit is contained in:
parent
23f7e1d39c
commit
f99d1e2a28
2 changed files with 7 additions and 6 deletions
|
|
@ -246,8 +246,9 @@ static func resolve_restart(cfg: ConfigFile = null) -> Dictionary:
|
||||||
return {"mode": "self", "argv": PackedStringArray()}
|
return {"mode": "self", "argv": PackedStringArray()}
|
||||||
|
|
||||||
|
|
||||||
## Argumente für den Selbst-Restart: dieselbe Godot-Binary öffnet denselben
|
## Argumente für den Selbst-Restart: dieselbe Godot-Binary startet die
|
||||||
## Projektordner im Editor-Modus („--editor“ ist nötig — ein nacktes
|
## Map-Editor-APP über deren main.tscn (kein "--editor" — das würde den
|
||||||
## „--path“ würde das Projekt als SPIEL starten, nicht als Editor).
|
## 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:
|
static func self_restart_args(project_dir: String) -> PackedStringArray:
|
||||||
return PackedStringArray(["--editor", "--path", project_dir])
|
return PackedStringArray(["--path", project_dir])
|
||||||
|
|
@ -223,5 +223,5 @@ func _run_tests() -> void:
|
||||||
_check((resolved2["argv"] as PackedStringArray).is_empty(),
|
_check((resolved2["argv"] as PackedStringArray).is_empty(),
|
||||||
"mode self: UI baut die Selbst-Restart-Argumente selbst")
|
"mode self: UI baut die Selbst-Restart-Argumente selbst")
|
||||||
var self_args := EditorUpdater.self_restart_args("/pfad/zum/klon")
|
var self_args := EditorUpdater.self_restart_args("/pfad/zum/klon")
|
||||||
_check(str(self_args[0]) == "--editor" and str(self_args[2]) == "/pfad/zum/klon",
|
_check(str(self_args[0]) == "--path" and str(self_args[1]) == "/pfad/zum/klon",
|
||||||
"Selbst-Restart: --editor --path <klon> (sonst startet das Projekt als SPIEL)")
|
"Selbst-Restart: --path <klon> (startet die Map-Editor-APP, nicht die Godot-Editor-Shell)")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue