mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-13 05:37:48 +02:00
fix: custom emoji font
This commit is contained in:
@ -10,7 +10,7 @@ private var cacheFontPath: String? = null
|
|||||||
fun getCustomEmojiFontPath(
|
fun getCustomEmojiFontPath(
|
||||||
context: ModContext
|
context: ModContext
|
||||||
): String? {
|
): String? {
|
||||||
val customFileName = context.config.experimental.nativeHooks.customEmojiFont.getNullable() ?: return null
|
val customFileName = context.config.experimental.nativeHooks.customEmojiFont.getNullable()?.takeIf { it.isNotBlank() } ?: return null
|
||||||
if (cacheFontPath == null) {
|
if (cacheFontPath == null) {
|
||||||
cacheFontPath = runCatching {
|
cacheFontPath = runCatching {
|
||||||
context.bridgeClient.getFileHandlerManager().getFileHandleLocalPath(
|
context.bridgeClient.getFileHandlerManager().getFileHandleLocalPath(
|
||||||
|
Reference in New Issue
Block a user