Exemple #1
0
        public void WriteStringWithHash(uint version, string value, bool withPadding = false, bool isCatherineFullBodyData = false)
        {
            WriteString(value);

            if (isCatherineFullBodyData && withPadding)
            {
                WriteByte(0);   // padding byte
            }
            if (version > 0x1080000)
            {
                WriteInt32(StringHasher.GenerateStringHash(value));
            }
        }
Exemple #2
0
        private void WriteStringWithHash(uint version, string value)
        {
            WriteString(value);

            if (version > 0x1080000)
            {
                WriteInt(StringHasher.GenerateStringHash(value));

                // if ( version <= 0x1104990 )
                // {
                //    hash = StringHasher.GenerateStringHash(str); // TODO: unsupported hash algo?
                // }
            }
        }