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()}
|
||||
|
||||
|
||||
## 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])
|
||||
return PackedStringArray(["--path", project_dir])
|
||||
|
|
@ -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 <klon> (sonst startet das Projekt als SPIEL)")
|
||||
_check(str(self_args[0]) == "--path" and str(self_args[1]) == "/pfad/zum/klon",
|
||||
"Selbst-Restart: --path <klon> (startet die Map-Editor-APP, nicht die Godot-Editor-Shell)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue