From 6141f1e8ad7880b88f485be4d8e2ed3eb5f20cba Mon Sep 17 00:00:00 2001 From: WarrenMondeville <541008505@qq.com> Date: Tue, 5 Sep 2023 21:23:25 +0800 Subject: [PATCH] Update FileSystem.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 文件数量等于最大数量时无法正常写入数据 去掉=号,可以解决这个bug --- GameFramework/FileSystem/FileSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameFramework/FileSystem/FileSystem.cs b/GameFramework/FileSystem/FileSystem.cs index f1af2800a..3f591f170 100644 --- a/GameFramework/FileSystem/FileSystem.cs +++ b/GameFramework/FileSystem/FileSystem.cs @@ -838,7 +838,7 @@ public bool WriteFile(string name, byte[] buffer, int startIndex, int length) hasFile = true; } - if (!hasFile && m_FileDatas.Count >= m_HeaderData.MaxFileCount) + if (!hasFile && m_FileDatas.Count > m_HeaderData.MaxFileCount) { return false; } @@ -900,7 +900,7 @@ public bool WriteFile(string name, Stream stream) hasFile = true; } - if (!hasFile && m_FileDatas.Count >= m_HeaderData.MaxFileCount) + if (!hasFile && m_FileDatas.Count > m_HeaderData.MaxFileCount) { return false; }