fix(YouTube/Hide seek message): separate the Hide seek undo message setting from the Hide seek message setting

This commit is contained in:
inotia00
2023-10-20 09:31:12 +09:00
parent 9ee3cfc1bd
commit d708fa422f
3 changed files with 17 additions and 1 deletions

View File

@ -89,12 +89,22 @@ object SeekMessagePatch : BytecodePatch(
addInstructionsWithLabels(
insertIndex, """
invoke-static {}, $PLAYER->hideSeekMessage()Z
invoke-static {}, $PLAYER->hideSeekUndoMessage()Z
move-result v$insertRegister
if-nez v$insertRegister, :default
""", ExternalLabel("default", getInstruction(index + 1))
)
/**
* Add settings
*/
SettingsPatch.addPreference(
arrayOf(
"PREFERENCE: PLAYER_SETTINGS",
"SETTINGS: HIDE_SEEK_UNDO_MESSAGE"
)
)
break
}
}