update DeserializeManifestOperation

优化修改文件后缀耗时
pull/235/head
JellyHoney 2024-02-01 16:46:34 +08:00
parent f90530e9f4
commit 769678a4b5
1 changed files with 2 additions and 2 deletions

View File

@ -142,9 +142,9 @@ namespace YooAsset
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
// 添加无后缀名路径的映射
if (Path.HasExtension(location))
string locationWithoutExtension = Path.ChangeExtension(location, null);
if (!ReferenceEquals(location, locationWithoutExtension))
{
string locationWithoutExtension = PathUtility.RemoveExtension(location);
if (Manifest.AssetPathMapping1.ContainsKey(locationWithoutExtension))
YooLogger.Warning($"Location have existed : {locationWithoutExtension}");
else