mirror of https://github.com/tuyoogame/YooAsset
parent
f90530e9f4
commit
769678a4b5
|
@ -142,9 +142,9 @@ namespace YooAsset
|
||||||
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
|
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))
|
if (Manifest.AssetPathMapping1.ContainsKey(locationWithoutExtension))
|
||||||
YooLogger.Warning($"Location have existed : {locationWithoutExtension}");
|
YooLogger.Warning($"Location have existed : {locationWithoutExtension}");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue