| System/AssetVersion/AssetVersion.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/AssetVersion/AssetVersionUtility.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/AssetVersion/DownLoadAndDiscompressTask.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/MainInterfacePanel/TipPanel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/AssetVersion/AssetVersion.cs
@@ -93,7 +93,16 @@ } } public bool CheckLocalFileValid() public bool CheckLocalFileValid(bool _completeFile) { if (_completeFile) { var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); var fileInfo = new FileInfo(path); return fileInfo.Exists && fileInfo.Length == size && md5 == FileExtersion.GetMD5HashFromFile(path); } else { if (extersion == ".manifest" || extersion == ".bytes" || extersion == ".txt" || extersion == ".dll") { @@ -111,7 +120,7 @@ var fileInfo = new FileInfo(path); var manifestAssetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact(m_RelativePath, ".manifest")); if (!fileInfo.Exists || fileInfo.Length != size || manifestAssetVersion == null || !manifestAssetVersion.CheckLocalFileValid()) if (!fileInfo.Exists || fileInfo.Length != size || manifestAssetVersion == null || !manifestAssetVersion.CheckLocalFileValid(false)) { return false; } @@ -125,6 +134,7 @@ return false; } } } return true; } System/AssetVersion/AssetVersionUtility.cs
@@ -91,7 +91,7 @@ { foreach (var assetVersion in assetVersions.Values) { if (!assetVersion.CheckLocalFileValid()) if (!assetVersion.CheckLocalFileValid(false)) { if (assetVersion.IsPriorAsset()) { System/AssetVersion/DownLoadAndDiscompressTask.cs
@@ -3,6 +3,7 @@ using UnityEngine; using System; using Snxxz.UI; using System.Threading; public class DownLoadAndDiscompressTask : Singleton<DownLoadAndDiscompressTask> { @@ -124,8 +125,14 @@ private void OnFileDownLoadCompleted(bool _ok, AssetVersion _assetVersion) { var correctFile = false; if (_ok) { correctFile = _assetVersion.CheckLocalFileValid(true); } if (_ok && correctFile) { okCount++; _assetVersion.localValid = true; } System/MainInterfacePanel/TipPanel.cs
@@ -89,6 +89,19 @@ { if (InGameDownLoad.Instance.CheckDominantDownLoad()) { if (InGameDownTestUtility.enable) { if (InGameDownTestUtility.isWifi) { InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Half); } else { InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Whole); } } else { if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork) { InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Half); @@ -99,6 +112,7 @@ } } } } if (DTCB105_tagMCPlayerWallow.antiAddictionOpen) {