Auto update 👍
This commit is contained in:
parent
72319b04ac
commit
d752dd17dc
1 changed files with 2 additions and 4 deletions
|
|
@ -14,10 +14,8 @@ func _ready() -> void:
|
|||
|
||||
popup.confirmed.connect(download_button_pressed)
|
||||
var patch_request: HTTPRequest = popup.get_node("HTTPRequest")
|
||||
var exec_path = OS.get_executable_path()
|
||||
var splitted = exec_path.split("/")
|
||||
var exec_dir = exec_path.replace(splitted[len(splitted)-1],"")
|
||||
patch_request.download_file = exec_dir + "chelimbalo.pck"
|
||||
var exec_dir = OS.get_executable_path().get_base_dir()
|
||||
patch_request.download_file = exec_dir.path_join("chelimbalo.pck")
|
||||
patch_request.request_completed.connect(patch_downloaded)
|
||||
|
||||
update_version_text.emit("Подгружаем данные с сервера...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue