少年修仙传客户端代码仓库
hch
2021-01-25 bb7d5c8bfad50f83b2aa5cf17e5407d13f53a778
0312 调试下载输出
1个文件已修改
18 ■■■■■ 已修改文件
System/AssetVersion/AssetVersion.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/AssetVersion.cs
@@ -89,7 +89,23 @@
            var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath);
            var fileInfo = new FileInfo(path);
            return fileInfo.Exists && fileInfo.Length == size && md5 == FileExtersion.GetMD5HashFromFile(path);
            if (!fileInfo.Exists)
            {
                Debug.LogFormat("文件不存在 {0}", path);
                return false;
            }
            if (fileInfo.Length != size)
            {
                Debug.LogFormat("{0}文件大小不对{1}-{2}", path, size, fileInfo.Length);
                return false;
            }
            var fileMD5 = FileExtersion.GetMD5HashFromFile(path);
            if (fileMD5 != md5)
            {
                Debug.LogFormat("{0}文件md5不对{1}-{2}", path, md5, fileMD5);
                return false;
            }
            return true;
        }
        else
        {