fix(youtube): improve patching speed (#2514)

This commit is contained in:
LisoUseInAIKyrios
2023-06-28 17:43:45 +04:00
committed by GitHub
parent e9fb849d5f
commit 77bb761b0b
71 changed files with 367 additions and 381 deletions

View File

@ -53,6 +53,7 @@ class SettingsPatch : BytecodePatch(
} - 6
// fixme: instead use Method.indexOfFirstConstantInstructionValue()
val copyrightPolicyIndex = instructions.indexOfFirst {
(it as? WideLiteralInstruction)?.wideLiteral == copyrightPolicyLabelId
} + 2