From 7341b5f648ea428e91bdb21bbb5fe5dcdf2763f6 Mon Sep 17 00:00:00 2001 From: Rendo Date: Wed, 17 Dec 2025 02:03:41 +0500 Subject: [PATCH] Restart game after autoupdate --- systems/auto_update.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/auto_update.gd b/systems/auto_update.gd index b5858e5..2b6188e 100644 --- a/systems/auto_update.gd +++ b/systems/auto_update.gd @@ -42,6 +42,7 @@ func download_button_pressed() -> void: func patch_downloaded(result: int, _response_code: int, _headers: PackedStringArray, _body: PackedByteArray) -> void: if result == OK: + OS.create_process(OS.get_executable_path(),OS.get_cmdline_args()) get_tree().quit() else: update_version_text.emit("[color=red]Ошибка загрузки новой версии:" + str(result) +"[/color]")