feat(kakaotalk): Refactor version info patch to improve readability of instruction filtering

This commit is contained in:
2025-05-04 01:07:05 +09:00
parent ea208b37cb
commit e9545a11c4

View File

@ -23,8 +23,8 @@ val versionInfoPatch = bytecodePatch(
val runPatch: (Fingerprint) -> Unit = {
val versionInfo = it.method.instructions
.filterIsInstance<BuilderInstruction21c>()
.first {
it.opcode == Opcode.CONST_STRING
.first { inst ->
inst.opcode == Opcode.CONST_STRING
}
val versionString = (versionInfo.reference as StringReference).string