From ebbaafb78e88f34faeafe9ff8532afe29231bd79 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 22 Oct 2023 01:14:48 +0200 Subject: [PATCH] feat: Add function to reset options to their default value --- .../kotlin/app/revanced/patcher/patch/options/PatchOption.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/app/revanced/patcher/patch/options/PatchOption.kt b/src/main/kotlin/app/revanced/patcher/patch/options/PatchOption.kt index 62d05ff..db95ee4 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/options/PatchOption.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/options/PatchOption.kt @@ -59,6 +59,7 @@ abstract class PatchOption( /** * Reset the [PatchOption] to its default value. + * Override this method if you need to mutate the value instead of replacing it. */ open fun reset() { uncheckedValue = default