update cache system

优化了缓存的信息文件写入方式
pull/122/head
hevinci 2023-06-21 14:18:51 +08:00
parent dc33abde46
commit 95111ef1e1
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace YooAsset
/// </summary>
public static void WriteInfoToFile(string filePath, string dataFileCRC, long dataFileSize)
{
using (FileStream fs = new FileStream(filePath, FileMode.Create))
using (FileStream fs = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.Read))
{
SharedBuffer.Clear();
SharedBuffer.WriteUTF8(dataFileCRC);