Restart game after autoupdate
This commit is contained in:
parent
e758c9f042
commit
7341b5f648
1 changed files with 1 additions and 0 deletions
|
|
@ -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]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue