mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 21:27:47 +02:00
feat(scripting): config interface
- change onLaunched to onDispose - refactor JSModule extras
This commit is contained in:
@ -14,6 +14,8 @@ import coil.ImageLoader
|
||||
import coil.decode.VideoFrameDecoder
|
||||
import coil.disk.DiskCache
|
||||
import coil.memory.MemoryCache
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.GsonBuilder
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import me.rhunk.snapenhance.bridge.BridgeService
|
||||
@ -81,6 +83,8 @@ class RemoteSideContext(
|
||||
.components { add(VideoFrameDecoder.Factory()) }.build()
|
||||
}
|
||||
|
||||
val gson: Gson by lazy { GsonBuilder().setPrettyPrinting().create() }
|
||||
|
||||
fun reload() {
|
||||
log.verbose("Loading RemoteSideContext")
|
||||
runCatching {
|
||||
|
Reference in New Issue
Block a user