mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Automatically downloads updated dex entries from repo
This commit is contained in:
@@ -16,6 +16,11 @@ def updateCreditsFile
|
|||||||
download_file(Settings::CREDITS_FILE_URL, Settings::CREDITS_FILE_PATH,)
|
download_file(Settings::CREDITS_FILE_URL, Settings::CREDITS_FILE_PATH,)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def updateCustomDexFile
|
||||||
|
return if $PokemonSystem.download_sprites != 0
|
||||||
|
download_file(Settings::CUSTOM_DEX_FILE_URL, Settings::CUSTOM_DEX_ENTRIES_PATH,)
|
||||||
|
end
|
||||||
|
|
||||||
def createCustomSpriteFolders()
|
def createCustomSpriteFolders()
|
||||||
if !Dir.exist?(Settings::CUSTOM_BATTLERS_FOLDER)
|
if !Dir.exist?(Settings::CUSTOM_BATTLERS_FOLDER)
|
||||||
Dir.mkdir(Settings::CUSTOM_BATTLERS_FOLDER)
|
Dir.mkdir(Settings::CUSTOM_BATTLERS_FOLDER)
|
||||||
|
|||||||
@@ -336,6 +336,7 @@ class PokemonLoadScreen
|
|||||||
def pbStartLoadScreen
|
def pbStartLoadScreen
|
||||||
updateHttpSettingsFile
|
updateHttpSettingsFile
|
||||||
updateCreditsFile
|
updateCreditsFile
|
||||||
|
updateCustomDexFile
|
||||||
newer_version = find_newer_available_version
|
newer_version = find_newer_available_version
|
||||||
if newer_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))
|
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))
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ module Settings
|
|||||||
CREDITS_FILE_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/Sprite Credits.csv"
|
CREDITS_FILE_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/Sprite Credits.csv"
|
||||||
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/CUSTOM_SPRITES"
|
SPRITES_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/CUSTOM_SPRITES"
|
||||||
VERSION_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/VERSION"
|
VERSION_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/VERSION"
|
||||||
|
CUSTOM_DEX_FILE_URL = "https://raw.githubusercontent.com/infinitefusion/infinitefusion-e18/main/Data/dex.json"
|
||||||
|
|
||||||
AUTOGEN_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/autogen-fusion-sprites/-/raw/master/Battlers/"
|
AUTOGEN_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/autogen-fusion-sprites/-/raw/master/Battlers/"
|
||||||
CUSTOM_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/CustomBattlers/"
|
CUSTOM_SPRITES_REPO_URL = "https://gitlab.com/pokemoninfinitefusion/customsprites/-/raw/master/CustomBattlers/"
|
||||||
|
|||||||
Reference in New Issue
Block a user