Integrate corrected char expressions into Liam code36

This commit is contained in:
zenord
2026-10-14 20:46:10 +08:00
parent 0c386ac8ec
commit 99a03e0487
23 changed files with 607 additions and 59 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
package com.gorios.lanvoice
object BuildConfig { const val AVATAR_USER_ASSET_CANDIDATE=false }
object BuildConfig { const val AVATAR_USER_ASSET_CANDIDATE=false;const val STARTUP_POSTER_RES_ID=1 }
+1 -1
View File
@@ -1,2 +1,2 @@
package com.gorios.lanvoice
object R { object drawable { const val startup_poster=1;const val startup_black_tulle_poster=2 } }
object R { object drawable { const val startup_poster=1;const val startup_black_tulle_poster=2;const val startup_char_expressions_r02_poster=3 } }
+6
View File
@@ -28,6 +28,12 @@ fun startupCacheCheck() {
} finally { worker.shutdownNow() }
val userPin="208f703ed92bf795bfeb78a1cef89b67bed2e45da80038a56157fd1ecd4cfa93"
val userKey=StartupAssetKey(31,1,userPin,"avatar/a01-black-tulle-roomy720-correct03/",3)
val charPin="f8a69041da51e1a551c6991bfad6d7f034f0f320f726f58568afd43d81cb9604"
val charKey=StartupAssetKey(36,1,charPin,"avatar/char-expressions-r02/",3)
check(charKey.fingerprint!=userKey.fingerprint)
check(runCatching { StartupAssetKey(36,1,userPin,charKey.root,3) }.isFailure)
check(runCatching { StartupAssetKey(36,1,charPin,userKey.root,3) }.isFailure)
check(runCatching { StartupAssetKey(36,1,charPin,charKey.root,2) }.isFailure)
check(userKey.fingerprint!=key(pin=userPin,validator=3).fingerprint)
for((root,pin,version) in listOf(Triple("avatar/unknown/",userPin,3),
Triple(userKey.root,"b".repeat(64),3),Triple(userKey.root,userPin,2))) {