From 8567878f07ebe3d0a0f0cc83bd9712bb2841bb3604a44e31e2b5e81587ac1510 Mon Sep 17 00:00:00 2001 From: copecone Date: Wed, 7 Oct 2026 00:06:53 +0900 Subject: [PATCH] Remove Legacy Resource Loading --- UI/FFmpegDownloadUI.cs | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/UI/FFmpegDownloadUI.cs b/UI/FFmpegDownloadUI.cs index 737f7f0..db3eb6b 100644 --- a/UI/FFmpegDownloadUI.cs +++ b/UI/FFmpegDownloadUI.cs @@ -85,46 +85,6 @@ internal class FFmpegDownloadUI : MonoBehaviour } } - private static TMP_FontAsset GetNanumSquareNeoBdFontAsset() - { - TMP_FontAsset? font = null; - if (ModAssets.FontBundle) - { - try - { - font = ModAssets.FontBundle.LoadAsset("NanumSquareNeoOTF-Bd SDF"); - } - catch - { - // Loading failed - } - } - - // Fallback processing - if (font == null) - { - try - { - font = RDString.fontData.fontTMP; - } - catch - { - // ignored - } - } - if (font == null) - { - // ReSharper disable once Unity.UnknownResource - font = Resources.Load("Fonts & Materials/LiberationSans SDF"); - } - - if (font) return font; - var fonts = Resources.FindObjectsOfTypeAll(); - if (fonts.Length > 0) font = fonts[0]; - - return font!; - } - private void Start() { // Set UI layer (5) @@ -159,7 +119,7 @@ internal class FFmpegDownloadUI : MonoBehaviour bgRect.offsetMin = Vector2.zero; bgRect.offsetMax = Vector2.zero; - var font = GetNanumSquareNeoBdFontAsset(); + var font = ModAssets.NanumSquareNeoNormal; // 2. Create modal container var modalContainerObj = new GameObject("ModalContainer");