diff --git a/systems/auto_update.gd b/systems/auto_update.gd index 2b6188e..a8f9ab8 100644 --- a/systems/auto_update.gd +++ b/systems/auto_update.gd @@ -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("Подгружаем данные с сервера...")