Switch to the GitHub update system for loaders #251
Labels
enhancement
New feature or request
ready to close
Issue is fixed and can be closed when the next update releases.
Advantages
How to check if a new version is available
Check local version (tag) information.
SADX: Load the file
sadxmlver.txt
in themods
folder as text. If the file doesn't exist, assume the text is608
.SA2: Load the file
sa2mlver.txt
in themods
folder as text. If the file doesn't exist, assume the text is284
.Try parse the contents of the string as an integer. If it fails, assume the default values listed above.
Get releases JSON from:
SADX:
https://api.github.com/repos/x-hax/sadx-mod-loader/releases
and make a list of releases that have theSADXModLoader.7z
asset.SA2:
https://api.github.com/repos/x-hax/sa2-mod-loader/releases
and make a list of releases that have theSA2ModLoader.7z
asset.Parse release tags as integers, and add a changelog entry for each tag that is higher than the one stored locally. Select the the tag with the highest number as the download candidate.
Example implementation:
How to install the update
mods
folder.extlib
folder toSAManager\extlib
.Example implementation:
The text was updated successfully, but these errors were encountered: