diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs index 850718d..e334da0 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomFile.cs @@ -104,6 +104,7 @@ namespace AxibugEmuOnline.Client { webData = resp_RomInfo; fileName = Path.GetFileName(webData.url); + fileName = System.Net.WebUtility.UrlDecode(fileName); if (File.Exists(LocalFilePath)) { diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs index 351ae66..94047f2 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/RomLib/RomLib.cs @@ -1,9 +1,6 @@ using AxibugEmuOnline.Client.ClientCore; using System; using System.Collections.Generic; -using System.Security.Cryptography; -using System.Text; -using UnityEngine; namespace AxibugEmuOnline.Client { @@ -53,14 +50,15 @@ namespace AxibugEmuOnline.Client public static string CalcHash(byte[] data) { - var hashBytes = MD5.Create().ComputeHash(data); - StringBuilder sb = new StringBuilder(); - foreach (byte b in hashBytes) - { - sb.Append(b.ToString("x2")); - } + return string.Empty; //todo : 等待远程仓库敲定hash算法 + //var hashBytes = MD5.Create().ComputeHash(data); + //StringBuilder sb = new StringBuilder(); + //foreach (byte b in hashBytes) + //{ + // sb.Append(b.ToString("x2")); + //} - return sb.ToString(); + //return sb.ToString(); } } }