Skip to content

Commit

Permalink
Update: Refactor directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Swakshan committed Mar 1, 2024
1 parent 0202771 commit b3044c3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package crimera.patches.twitter.live
package crimera.patches.twitter.timeline.live

import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
Expand All @@ -10,7 +10,7 @@ import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotation.Patch
import com.android.tools.smali.dexlib2.Opcode
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
import crimera.patches.twitter.live.fingerprints.HideLiveThreadsFingerprint
import crimera.patches.twitter.timeline.live.fingerprints.HideLiveThreadsFingerprint

@Patch(
name = "Hide Live Threads",
Expand All @@ -30,7 +30,6 @@ object HideLiveThreadsPatch : BytecodePatch(

val loc = instructions.first{it.opcode == Opcode.IGET_OBJECT}.location.index
val reg = method.getInstruction<OneRegisterInstruction>(loc).registerA

method.addInstruction(loc+1,"""
const v$reg, 0x0
""".trimIndent())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package crimera.patches.twitter.live.fingerprints
package crimera.patches.twitter.timeline.live.fingerprints

import app.revanced.patcher.fingerprint.MethodFingerprint
import com.android.tools.smali.dexlib2.Opcode
Expand Down

0 comments on commit b3044c3

Please sign in to comment.