mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 13:17:42 +02:00
fix: custom emoji font
This commit is contained in:
@ -10,7 +10,7 @@ private var cacheFontPath: String? = null
|
||||
fun getCustomEmojiFontPath(
|
||||
context: ModContext
|
||||
): 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) {
|
||||
cacheFontPath = runCatching {
|
||||
context.bridgeClient.getFileHandlerManager().getFileHandleLocalPath(
|
||||
|
Reference in New Issue
Block a user