diff --git a/UI/FFmpegDownloadUI.cs b/UI/FFmpegDownloadUI.cs index c294428..0cc916f 100644 --- a/UI/FFmpegDownloadUI.cs +++ b/UI/FFmpegDownloadUI.cs @@ -88,7 +88,7 @@ namespace ADOFAIRenderer.UI private static TMP_FontAsset GetNanumSquareNeoBdFontAsset() { TMP_FontAsset? font = null; - if (RenderMod.FontBundle != null) + if (RenderMod.FontBundle) { try { @@ -118,7 +118,7 @@ namespace ADOFAIRenderer.UI font = Resources.Load("Fonts & Materials/LiberationSans SDF"); } - if (font != null) return font; + if (font) return font; var fonts = Resources.FindObjectsOfTypeAll(); if (fonts.Length > 0) font = fonts[0]; @@ -508,7 +508,7 @@ namespace ADOFAIRenderer.UI _isDownloading = false; _buttonContainerObj.SetActive(true); var downloadBtnText = _buttonContainerObj.transform.Find("DownloadButton/DownloadText")?.GetComponent(); - if (downloadBtnText != null) + if (downloadBtnText) { downloadBtnText.text = "재시도 (Retry)"; } @@ -530,7 +530,7 @@ namespace ADOFAIRenderer.UI { ExecuteOnMainThread(() => { - if (_statusText != null) + if (_statusText) { _statusText.text = message; _statusText.color = color; @@ -542,11 +542,11 @@ namespace ADOFAIRenderer.UI { ExecuteOnMainThread(() => { - if (_fillRect != null) + if (_fillRect) { _fillRect.anchorMax = new Vector2(percent, 1f); } - if (_progressText != null) + if (_progressText) { _progressText.text = text; } diff --git a/Util/FileUtil.cs b/Util/FileUtil.cs new file mode 100644 index 0000000..4081c8f --- /dev/null +++ b/Util/FileUtil.cs @@ -0,0 +1,6 @@ +namespace ADOFAIRenderer.Util; + +public class FileUtil +{ + +} \ No newline at end of file