Automatically downloads updated dex entries from repo

This commit is contained in:
infinitefusion
2024-04-13 13:49:49 -04:00
parent 3184a79bfd
commit cca1e0bd62
3 changed files with 7 additions and 0 deletions

View File

@@ -16,6 +16,11 @@ def updateCreditsFile
download_file(Settings::CREDITS_FILE_URL, Settings::CREDITS_FILE_PATH,)
end
def updateCustomDexFile
return if $PokemonSystem.download_sprites != 0
download_file(Settings::CUSTOM_DEX_FILE_URL, Settings::CUSTOM_DEX_ENTRIES_PATH,)
end
def createCustomSpriteFolders()
if !Dir.exist?(Settings::CUSTOM_BATTLERS_FOLDER)
Dir.mkdir(Settings::CUSTOM_BATTLERS_FOLDER)

View File

@@ -336,6 +336,7 @@ class PokemonLoadScreen
def pbStartLoadScreen
updateHttpSettingsFile
updateCreditsFile
updateCustomDexFile
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))