update cache system

优化了缓存的信息文件写入方式
mlyDevMerge1.5.7
hevinci 2023-06-21 14:18:51 +08:00 committed by QiJing
parent 48ecd15661
commit 5179fe14ff
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace YooAsset
/// </summary> /// </summary>
public static void WriteInfoToFile(string filePath, string dataFileCRC, long dataFileSize) 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.Clear();
SharedBuffer.WriteUTF8(dataFileCRC); SharedBuffer.WriteUTF8(dataFileCRC);