mirror of
https://gitlab.com/2009scape/09launcher.git
synced 2025-12-10 10:20:55 -07:00
-Added close button to settings menu
-Added launcher settings tab -Added automatic launcher update checker
This commit is contained in:
parent
b8ca80cd3d
commit
9fd2d9710d
12 changed files with 223 additions and 55 deletions
|
|
@ -2,6 +2,7 @@ import java.io.File
|
|||
import java.io.FileInputStream
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
import java.net.URI
|
||||
import java.net.URL
|
||||
import java.security.MessageDigest
|
||||
import java.security.NoSuchAlgorithmException
|
||||
|
|
@ -21,7 +22,7 @@ object Checksum {
|
|||
return null
|
||||
}
|
||||
|
||||
fun getLocalChecksum(file: String?): String {
|
||||
fun getLocalChecksum(file: URI?): String {
|
||||
val local = File(file!!)
|
||||
if(!local.exists()) return ""
|
||||
else FileInputStream(local).use { fis -> return calculateMd5(fis) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue