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

This commit is contained in:
LisoUseInAIKyrios
2023-06-28 17:43:45 +04:00
committed by GitHub
parent 23537557b5
commit 38dda9346b
71 changed files with 367 additions and 381 deletions
@@ -53,6 +53,7 @@ class SettingsPatch : BytecodePatch(
} - 6
// fixme: instead use Method.indexOfFirstConstantInstructionValue()
val copyrightPolicyIndex = instructions.indexOfFirst {
(it as? WideLiteralInstruction)?.wideLiteral == copyrightPolicyLabelId
} + 2