From 5179fe14ff718e4375c632ed704ef7b2c23ad131 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 21 Jun 2023 14:18:51 +0800 Subject: [PATCH] update cache system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化了缓存的信息文件写入方式 --- Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs b/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs index e18e340..9017fd8 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs @@ -12,7 +12,7 @@ namespace YooAsset /// 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);