mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-23 03:01:03 +00:00
18 lines
390 B
Kotlin
18 lines
390 B
Kotlin
package app.revanced.patcher.patch
|
|
|
|
/**
|
|
* A container for patch options.
|
|
*/
|
|
abstract class OptionsContainer {
|
|
/**
|
|
* A list of [PatchOption]s.
|
|
* @see PatchOptions
|
|
*/
|
|
@Suppress("MemberVisibilityCanBePrivate")
|
|
val options = PatchOptions()
|
|
|
|
protected fun <T> option(opt: PatchOption<T>): PatchOption<T> {
|
|
options.register(opt)
|
|
return opt
|
|
}
|
|
} |