CrystalMpq.MpqBlockEntry.ComputeSeed C# (CSharp) Method

ComputeSeed() private static method

private static ComputeSeed ( string filename ) : uint
filename string
return uint
        private static uint ComputeSeed(string filename)
        {
            // Calculate the seed based on the file name and not the full path.
            // I really don't know why but it worked with the full path for a lot of files…
            // But now it's fixed at least
            int index = filename.LastIndexOf('\\');
            return CommonMethods.Hash(index >= 0 ? filename.Substring(index + 1) : filename, 0x300);
        }