public bool GetEncodingEntry(ulong hash, out EncodingEntry entry) { var info = RootHandler.GetEntries(hash); if (info.Any()) { return(EncodingHandler.GetEntry(info.First().MD5, out entry)); } if ((CASCConfig.LoadFlags & LoadFlags.Install) != 0) { var installInfo = Install.GetEntries().Where(e => Hasher.ComputeHash(e.Name) == hash); if (installInfo.Any()) { return(EncodingHandler.GetEntry(installInfo.First().MD5, out entry)); } } entry = default(EncodingEntry); return(false); }