From 8c0cbb1512eb576eed5a3489d87ae2ca0a6f3c52 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 28 Oct 2022 14:06:07 -0500 Subject: [PATCH] Cleaned up some warnings --- Main_menu.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Main_menu.gd b/Main_menu.gd index 17e93fe..b94af62 100644 --- a/Main_menu.gd +++ b/Main_menu.gd @@ -8,7 +8,7 @@ var os_name # The simplified name of the OS (linux, or windows) var suffix # # Every _process tick -func _process(delta): +func _process(_delta): # If the newest_version variable exists, if newest_version != null: # Get the local_version (By looking at the store.json file) @@ -54,7 +54,7 @@ func _ready(): # Define _versions_request_completed # Handles the signal sent by the HTTPRequest when the download completes. -func _versions_request_completed(result, response_code, headers, body): +func _versions_request_completed(_result, _response_code, _headers, body): # Get the JSON data var data = JSON.parse(body.get_string_from_ascii()).result # Get the newest version @@ -66,7 +66,7 @@ func _versions_request_completed(result, response_code, headers, body): # Define _download_request_completed # Handles the signal sent by the HTTPRequest when the download completes. -func _download_request_completed(result, response_code, headers, body): +func _download_request_completed(_result, _response_code, _headers, body): # Get a new File object for the executable var dl_file = File.new() # Open the dl_file using the following path, @@ -83,7 +83,7 @@ func _download_request_completed(result, response_code, headers, body): # IF the os is "linux" based, use chmod to change the file to executable if os_name == "linux": - OS.execute("chmod", ["+x", OS.get_config_dir()+"/UltraFlare/current/UltraFlare-"+os_name+"-x86_64"]) + var error = OS.execute("chmod", ["+x", OS.get_config_dir()+"/UltraFlare/current/UltraFlare-"+os_name+"-x86_64"]) # Enable (Un-disable?) the Play_button $Panel/Play_button.disabled = false