This commit is contained in:
inotia00 2023-10-13 23:38:28 +09:00
parent b78032b1a9
commit 07b27383d6
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ object PowerSaveModeFingerprint : MethodFingerprint(
if (instructions.count() < 20) if (instructions.count() < 20)
return@custom false return@custom false
var count = 0; var count = 0
for (instruction in instructions) { for (instruction in instructions) {
if (instruction.opcode != Opcode.INVOKE_VIRTUAL) if (instruction.opcode != Opcode.INVOKE_VIRTUAL)
continue continue

View File

@ -25,7 +25,6 @@ import app.revanced.patches.youtube.utils.returnyoutubedislike.oldlayout.ReturnY
import app.revanced.patches.youtube.utils.returnyoutubedislike.shorts.ReturnYouTubeDislikeShortsPatch import app.revanced.patches.youtube.utils.returnyoutubedislike.shorts.ReturnYouTubeDislikeShortsPatch
import app.revanced.patches.youtube.utils.settings.SettingsPatch import app.revanced.patches.youtube.utils.settings.SettingsPatch
import app.revanced.patches.youtube.utils.videoid.general.VideoIdPatch import app.revanced.patches.youtube.utils.videoid.general.VideoIdPatch
import app.revanced.util.integrations.Constants
import app.revanced.util.integrations.Constants.PATCHES_PATH import app.revanced.util.integrations.Constants.PATCHES_PATH
import app.revanced.util.integrations.Constants.UTILS_PATH import app.revanced.util.integrations.Constants.UTILS_PATH
import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.Opcode

View File

@ -63,7 +63,8 @@ object ReturnYouTubeDislikeShortsPatch : BytecodePatch(
it.mutableMethod.apply { it.mutableMethod.apply {
val insertIndex = it.scanResult.patternScanResult!!.startIndex val insertIndex = it.scanResult.patternScanResult!!.startIndex
val charSequenceRegister = getInstruction<FiveRegisterInstruction>(insertIndex).registerC val charSequenceRegister =
getInstruction<FiveRegisterInstruction>(insertIndex).registerC
val conversionContextRegister = getInstruction<TwoRegisterInstruction>(0).registerA val conversionContextRegister = getInstruction<TwoRegisterInstruction>(0).registerA
val replaceReference = getInstruction<ReferenceInstruction>(insertIndex).reference val replaceReference = getInstruction<ReferenceInstruction>(insertIndex).reference