public Md5File(string remoteMd5) { m_localMd5Dict = Md5FileHelper.LocalMd5File2Dict(); m_remoteMd5Dict = Md5FileHelper.Md5Text2Dict(remoteMd5); m_tempMd5Dict = Md5FileHelper.LocalMd5File2Dict(AppConfig.Temp_Md5FilePath); m_needDownloadConfigQueue = new Queue <SGameUpdaterDownloadConfig>(); InitNeedDownloadFileQueue(); }
//更新资源成功后将md5写到文件保存 public void UpdateMd5File() { Md5FileHelper.Dict2LocalMd5File(m_localMd5Dict, string.Format("{0}/{1}", Util.DeviceResPath() + AppConfig.Md5FilePath)); Md5FileHelper.Dict2LocalMd5File(m_tempMd5Dict, string.Format("{0}/{1}", Util.DeviceResPath() + AppConfig.Temp_Md5FilePath)); }