feat(youtube/overlay-buttons): remove Always auto repeat toggle from settings

This commit is contained in:
inotia00
2023-06-24 14:49:17 +09:00
parent cd2bb5b322
commit bc89e72fba
3 changed files with 2 additions and 6 deletions

View File

@ -65,7 +65,7 @@ class AutoRepeatPatch : BytecodePatch(
addInstructionsWithLabels(
targetIndex + 1, """
invoke-static {}, $UTILS_PATH/EnableAutoRepeatPatch;->shouldAutoRepeat()Z
invoke-static {}, $UTILS_PATH/AlwaysRepeatPatch;->shouldAlwaysRepeat()Z
move-result v$dummyRegister
if-nez v$dummyRegister, :bypass
invoke-virtual {v$registerC, v$registerD}, $targetReference
@ -87,7 +87,7 @@ class AutoRepeatPatch : BytecodePatch(
addInstructions(
index + 1, """
invoke-static {v$register}, $UTILS_PATH/EnableAutoRepeatPatch;->enableAutoRepeat(Z)Z
invoke-static {v$register}, $UTILS_PATH/AlwaysRepeatPatch;->enableAlwaysRepeat(Z)Z
move-result v0
"""
)