let the syntax file include its id again

This commit is contained in:
UbitUmarov
2018-10-25 02:36:36 +01:00
parent a95397e8f5
commit a1d132d3ca
2 changed files with 13 additions and 3 deletions

View File

@@ -347,15 +347,24 @@ namespace OpenSim.Region.ClientStack.Linden
string s="";
char[] trimc = new char[] {' ','\t', '\n', '\r'};
while((s = sr.ReadLine()) != null)
s = sr.ReadLine();
if(s == null)
return;
s = s.Trim(trimc);
UUID id;
if(!UUID.TryParse(s,out id))
return;
while ((s = sr.ReadLine()) != null)
{
s = s.Trim(trimc);
if(String.IsNullOrEmpty(s) || s.StartsWith("<!--"))
if (String.IsNullOrEmpty(s) || s.StartsWith("<!--"))
continue;
sb.Append(s);
}
m_scriptSyntaxXML = sb.ToString();
m_scriptSyntaxID = Util.ComputeSHA1UUID(m_scriptSyntaxXML);
m_scriptSyntaxID = id;
}
}
catch