ME3Explorer.KFreonTPFTools3.UpdateHash C# (CSharp) Method

UpdateHash() private method

private UpdateHash ( TPFTexInfo tex, string hash ) : TPFTexInfo
tex KFreonLib.Textures.TPFTexInfo
hash string
return KFreonLib.Textures.TPFTexInfo
        private TPFTexInfo UpdateHash(TPFTexInfo tex, string hash)
        {
            // KFreon: Check new hash
            uint newhash = 0;
            try
            {
                newhash = KFreonLib.Textures.Methods.FormatTexmodHashAsUint(hash);
            }
            catch (Exception e)
            {
                DebugOutput.PrintLn("Specified hash invalid: " + e.Message);
                MessageBox.Show("Hash specified is invalid. Got enough characters? Remember you need 0x at the start.");
                return null;
            }

            tex.Hash = newhash;
            return tex;
        }

Same methods

KFreonTPFTools3::UpdateHash ( TPFTexInfo tex, uint hash ) : TPFTexInfo
KFreonTPFTools3