From 67e8e4511f37580926d73ff1dd1814f10c5bba46 Mon Sep 17 00:00:00 2001 From: infinitefusion Date: Sat, 15 Apr 2023 10:06:05 -0400 Subject: [PATCH] small fixes for version update --- Data/Scripts/050_AddOns/GeneralUtils.rb | 4 +--- Data/Scripts/050_AddOns/HttpCalls.rb | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Data/Scripts/050_AddOns/GeneralUtils.rb b/Data/Scripts/050_AddOns/GeneralUtils.rb index c7de4d3fd..68decaab5 100644 --- a/Data/Scripts/050_AddOns/GeneralUtils.rb +++ b/Data/Scripts/050_AddOns/GeneralUtils.rb @@ -576,7 +576,5 @@ def is_higher_version(gameVersion, latestVersion) return true if (latestVersion_parts[i].nil? || part > latestVersion_parts[i]) return false if part < latestVersion_parts[i] end - - # If all parts are equal up to this point, the longer version is considered higher - return latestVersion_parts.length < gameVersion_parts.length + return latestVersion_parts.length <= gameVersion_parts.length end diff --git a/Data/Scripts/050_AddOns/HttpCalls.rb b/Data/Scripts/050_AddOns/HttpCalls.rb index cad32cda5..b83c1d377 100644 --- a/Data/Scripts/050_AddOns/HttpCalls.rb +++ b/Data/Scripts/050_AddOns/HttpCalls.rb @@ -14,7 +14,6 @@ end def download_file(url, saveLocation) begin response = HTTPLite.get(url) - p response if response[:status] == 200 File.open(saveLocation, "wb") do |file| file.write(response[:body])