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;
}