mirror of
https://gitlab.com/2009scape/09launcher.git
synced 2025-12-09 16:45:54 -07:00
launcher now checks if there is an update before downloading it
This commit is contained in:
parent
a6e855a740
commit
99c798daad
3 changed files with 9 additions and 27 deletions
|
|
@ -19,7 +19,7 @@ object Updater {
|
|||
val fileUri = File(Settings.SAVE_DIR + File.separator + Settings.SAVE_NAME).toURI()
|
||||
status = UpdateStatus.CHECKING
|
||||
localMD5 = Checksum.getLocalChecksum(fileUri)
|
||||
remoteMD5 = Checksum.getRemoteChecksum(Settings.DOWNLOAD_URL) ?: "-1"
|
||||
remoteMD5 = Checksum.getRemoteChecksum(Settings.DOWNLOAD_MD5_URL, checksumFile = true) ?: "-1"
|
||||
println("Local: $localMD5 || Remote: $remoteMD5")
|
||||
status = UpdateStatus.COMPLETE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue