fix: crunchyroll
This commit is contained in:
parent
ae72cc2f29
commit
a5023524d8
1 changed files with 3 additions and 3 deletions
|
|
@ -18,11 +18,11 @@ val hideAdsPatch = bytecodePatch("Hide ads") {
|
||||||
|
|
||||||
apply {
|
apply {
|
||||||
// Get obfuscated "enableAds" field from toString method.
|
// Get obfuscated "enableAds" field from toString method.
|
||||||
val enableAdsField = videoUrlReadyToStringMethodMatch.method.apply {
|
val enableAdsField = videoUrlReadyToStringMethodMatch.method.let {
|
||||||
val stringIndex = videoUrlReadyToStringMethodMatch[-1]
|
val stringIndex = videoUrlReadyToStringMethodMatch[-1]
|
||||||
val fieldIndex = indexOfFirstInstruction(stringIndex, Opcode.IGET_BOOLEAN)
|
val fieldIndex = it.indexOfFirstInstruction(stringIndex, Opcode.IGET_BOOLEAN)
|
||||||
|
|
||||||
getInstruction<ReferenceInstruction>(fieldIndex).getReference<FieldReference>()!!
|
it.getInstruction<ReferenceInstruction>(fieldIndex).getReference<FieldReference>()!!
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove final access flag on field.
|
// Remove final access flag on field.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue