From d752dd17dc7cac90821ff941d5f95a822d3dfee9 Mon Sep 17 00:00:00 2001 From: Rendo Date: Wed, 17 Dec 2025 02:22:43 +0500 Subject: [PATCH] Auto update :+1: --- systems/auto_update.gd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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("Подгружаем данные с сервера...")