| | |
| | | { |
| | | if (_completeFile) |
| | | { |
| | | var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var fileInfo = new FileInfo(path); |
| | | |
| | | if (!fileInfo.Exists) |
| | |
| | | { |
| | | if (extersion == ".manifest" || extersion == ".bytes" || extersion == ".txt" || extersion == ".dll") |
| | | { |
| | | var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var fileInfo = new FileInfo(path); |
| | | |
| | | if (!fileInfo.Exists || fileInfo.Length != size || md5 != FileExtersion.GetMD5HashFromFile(path)) |
| | |
| | | } |
| | | else if (string.IsNullOrEmpty(extersion) || extersion.Length == 0) |
| | | { |
| | | var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var fileInfo = new FileInfo(path); |
| | | |
| | | var manifestAssetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact(m_RelativePath, ".manifest")); |
| | | var manifestAssetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Concat(m_RelativePath, ".manifest")); |
| | | if (!fileInfo.Exists || fileInfo.Length != size || manifestAssetVersion == null || !manifestAssetVersion.CheckLocalFileValid(false)) |
| | | { |
| | | return false; |
| | |
| | | } |
| | | else |
| | | { |
| | | var path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var path = StringUtility.Concat(ResourcesPath.Instance.ExternalStorePath, m_RelativePath); |
| | | var fileInfo = new FileInfo(path); |
| | | if (!fileInfo.Exists || fileInfo.Length != size) |
| | | { |