Fixes bug preventing game from downloading newest sprites

This commit is contained in:
infinitefusion
2024-12-30 12:11:35 -05:00
parent 7cc97fb7b9
commit 46e7636c65
18 changed files with 10 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ end
def updateHttpSettingsFile
return if !downloadAllowed?()
echoln "UPDATING SETTINGS"
download_file(Settings::HTTP_CONFIGS_FILE_URL, Settings::HTTP_CONFIGS_FILE_PATH,)
end
@@ -41,7 +42,7 @@ def download_file(url, saveLocation)
echoln _INTL("\nDownloaded file {1} to {2}", url, saveLocation)
return saveLocation
else
echoln _INTL("Tried to download file {1}", url)
echoln _INTL("Failed to download file {1}", url)
end
return nil
rescue MKXPError, Errno::ENOENT => error
@@ -363,6 +364,7 @@ end
def updateOnlineCustomSpritesFile
return if !downloadAllowed?()
echoln "HERE"
download_file(Settings::SPRITES_FILE_URL, Settings::CUSTOM_SPRITES_FILE_PATH)
download_file(Settings::BASE_SPRITES_FILE_URL, Settings::BASE_SPRITES_FILE_PATH)
end

View File

@@ -416,6 +416,7 @@ class PokemonLoadScreen
updateHttpSettingsFile
updateCreditsFile
updateCustomDexFile
updateOnlineCustomSpritesFile
newer_version = find_newer_available_version
if newer_version
pbMessage(_INTL("Version {1} is now available! Please use the game's installer to download the newest version. Check the Discord for more information.", newer_version))