public UFileInfo OnGetFile(string name) { name = name.Replace("\\", "/"); if (dFiles.ContainsKey(name)) { return(dFiles[name]); } if (File.Exists(UStaticFuncs.ConfigSaveDir + name)) { var fi = new UFileInfo(name, MD5String.GetMD5HashFromFile(UStaticFuncs.ConfigSaveDir + name)); dFiles.Add(name, fi); return(fi); } return(null); }
private void OnLogin(string[] sCmds) { AClientApis.OnLogin(sCmds[1], MD5String.Hash32(sCmds[2]), EPartnerID.Test); }