Cleaned up some warnings

This commit is contained in:
Noah 2022-10-28 14:06:07 -05:00
parent c017009b86
commit 8c0cbb1512

View File

@ -8,7 +8,7 @@ var os_name # The simplified name of the OS (linux, or windows)
var suffix # var suffix #
# Every _process tick # Every _process tick
func _process(delta): func _process(_delta):
# If the newest_version variable exists, # If the newest_version variable exists,
if newest_version != null: if newest_version != null:
# Get the local_version (By looking at the store.json file) # Get the local_version (By looking at the store.json file)
@ -54,7 +54,7 @@ func _ready():
# Define _versions_request_completed # Define _versions_request_completed
# Handles the signal sent by the HTTPRequest when the download completes. # 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 # Get the JSON data
var data = JSON.parse(body.get_string_from_ascii()).result var data = JSON.parse(body.get_string_from_ascii()).result
# Get the newest version # Get the newest version
@ -66,7 +66,7 @@ func _versions_request_completed(result, response_code, headers, body):
# Define _download_request_completed # Define _download_request_completed
# Handles the signal sent by the HTTPRequest when the download completes. # 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 # Get a new File object for the executable
var dl_file = File.new() var dl_file = File.new()
# Open the dl_file using the following path, # 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 the os is "linux" based, use chmod to change the file to executable
if os_name == "linux": 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 # Enable (Un-disable?) the Play_button
$Panel/Play_button.disabled = false $Panel/Play_button.disabled = false