From 00d47cde0c3acc4a026990f03817adacac03c2e2 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Sat, 2 Dec 2023 00:32:42 +0800 Subject: [PATCH] Fix the names of missing textures not correctly logged. --- Assets/Cryville/Crtr/ChartPlayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Cryville/Crtr/ChartPlayer.cs b/Assets/Cryville/Crtr/ChartPlayer.cs index 1af1a0a..f723223 100644 --- a/Assets/Cryville/Crtr/ChartPlayer.cs +++ b/Assets/Cryville/Crtr/ChartPlayer.cs @@ -462,9 +462,9 @@ namespace Cryville.Crtr { #endif while (!texLoader.isDone) yield return (float)i / queue.Count; #if UNITY_5_4_OR_NEWER + string url = texLoader.url; + string name = StringUtils.TrimExt(url.Substring(url.LastIndexOfAny(new char[] {'/', '\\'}) + 1)); if (texHandler.isDone) { - string url = texLoader.url; - string name = StringUtils.TrimExt(url.Substring(url.LastIndexOfAny(new char[] {'/', '\\'}) + 1)); var tex = texHandler.texture; tex.wrapMode = TextureWrapMode.Clamp; if (frames.ContainsKey(name)) {