update asset bundle builder

暂时移除xxHash
This commit is contained in:
hevinci
2023-08-25 17:19:57 +08:00
parent 05cb57db09
commit 8471bb0f9a
45 changed files with 38 additions and 3153 deletions
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using Standart.Hash.xxHash;
namespace YooAsset
{
@@ -281,28 +280,6 @@ namespace YooAsset
return string.Empty;
}
}
/// <summary>
/// 获取文件的XXXhash32
/// </summary>
/// <param name="filePath"></param>
/// <returns></returns>
public static string FileXXhash(string filePath)
{
try
{
using (var fs = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
return xxHash32.ComputeHash(fs).ToString("x8");
}
}
catch (Exception e)
{
YooLogger.Exception(e);
return string.Empty;
}
}
/// <summary>
/// 获取数据流的MD5