mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Refactor GameyfinPlugin and ConfigurableGameyfinPlugin to fix SLF4J issue
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package de.grimsi.gameyfin.pluginapi.core
|
||||
|
||||
import org.pf4j.PluginWrapper
|
||||
|
||||
abstract class ConfigurableGameyfinPlugin(wrapper: PluginWrapper) : GameyfinPlugin(wrapper), Configurable {
|
||||
|
||||
companion object {
|
||||
lateinit var plugin: ConfigurableGameyfinPlugin
|
||||
private set
|
||||
}
|
||||
|
||||
init {
|
||||
plugin = this
|
||||
}
|
||||
|
||||
override var config: Map<String, String?> = emptyMap()
|
||||
}
|
||||
@@ -8,6 +8,13 @@ abstract class GameyfinPlugin(wrapper: PluginWrapper) : Plugin(wrapper) {
|
||||
companion object {
|
||||
const val LOGO_FILE_NAME: String = "logo"
|
||||
val SUPPORTED_LOGO_FORMATS: List<String> = listOf("png", "jpg", "jpeg", "gif", "svg", "webp")
|
||||
|
||||
lateinit var plugin: GameyfinPlugin
|
||||
private set
|
||||
}
|
||||
|
||||
init {
|
||||
plugin = this
|
||||
}
|
||||
|
||||
fun hasLogo(): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user