public Md5File(string module, string removeText) { _module = module; _version = VersionHelp.version; _remoteMd5Dict = Md5FileHelp.ForDict(removeText); _localMd5Dict = Md5FileHelp.LocalFileForDict(_module, GameConfig.md5_name); _tmpMd5Dict = Md5FileHelp.LocalFileForDict(_module, "tmp.txt"); _downloadQueue = new Queue <SDownloadModuleConfig>(); InitUpdateFile(); }
public void Destroy() { string fullModule; if (_module != GameConfig.module_name) { fullModule = string.Format("{0}/{1}", Util.DeviceResPath, _module); } else { fullModule = Util.DeviceResPath; } Md5FileHelp.ForFile(_localMd5Dict, string.Format("{0}/{1}", fullModule, "md5file.txt")); Md5FileHelp.ForFile(_tmpMd5Dict, string.Format("{0}/{1}", fullModule, "tmp.txt")); }