mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-08 03:30:51 +00:00
Fix hashing for images so we properly detect changes to ordering.
This commit is contained in:
parent
4b674d20b7
commit
4df31bea67
@ -207,13 +207,8 @@ class A2PackPartitions
|
||||
def calcImagesHash(imgEls)
|
||||
{
|
||||
def md = MessageDigest.getInstance("MD5")
|
||||
imgEls.each { imgEl ->
|
||||
def data = imgEl.displayData?.find { it.@platform == "AppleII" }
|
||||
assert data : "image '$name' missing AppleII platform data"
|
||||
md.update(data.toString().getBytes())
|
||||
}
|
||||
byte[] bytes = MessageDigest.getInstance("MD5").digest()
|
||||
return DatatypeConverter.printHexBinary(bytes)
|
||||
imgEls.each { md.update(it.toString().getBytes()) }
|
||||
return DatatypeConverter.printHexBinary(md.digest())
|
||||
}
|
||||
|
||||
def pixelize(dataEl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user