mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-14 19:40:47 +00:00
fix #465
This commit is contained in:
@@ -318,8 +318,15 @@ namespace YooAsset
|
||||
}
|
||||
else if (nameStyle == (int)EFileNameStyle.BundleName_HashName)
|
||||
{
|
||||
string fileName = bundleName.Remove(bundleName.LastIndexOf('.'));
|
||||
return StringUtility.Format("{0}_{1}{2}", fileName, fileHash, fileExtension);
|
||||
if (string.IsNullOrEmpty(fileExtension))
|
||||
{
|
||||
return StringUtility.Format("{0}_{1}", bundleName, fileHash);
|
||||
}
|
||||
else
|
||||
{
|
||||
string fileName = bundleName.Remove(bundleName.LastIndexOf('.'));
|
||||
return StringUtility.Format("{0}_{1}{2}", fileName, fileHash, fileExtension);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user