Skip to content

Commit

Permalink
perf: skip writing xml comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Monitor221hz committed Oct 25, 2024
1 parent a454b20 commit 1fead1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions HKX2/HavokXmlPartialSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ public void WriteClassArray<T>(XElement xe, string paramName, IList<T> values) w

public void WriteSerializeIgnored(XElement xe, string prop)
{
if (prop.StartsWith("m_"))
{
prop = prop[2..];
}
WriteComment(xe, prop + " SERIALIZE_IGNORED");
//if (prop.StartsWith("m_"))
//{
// prop = prop[2..];
//}
//WriteComment(xe, prop + " SERIALIZE_IGNORED");
}

private static void WriteComment(XElement xe, string value)
Expand Down
10 changes: 5 additions & 5 deletions HKX2/HavokXmlSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ public void WriteClassArray<T>(XElement xe, string paramName, IList<T> values) w

public void WriteSerializeIgnored(XElement xe, string prop)
{
if (prop.StartsWith("m_"))
{
prop = prop[2..];
}
WriteComment(xe, prop + " SERIALIZE_IGNORED");
//if (prop.StartsWith("m_"))
//{
// prop = prop[2..];
//}
//WriteComment(xe, prop + " SERIALIZE_IGNORED");
}

private static void WriteComment(XElement xe, string value)
Expand Down

0 comments on commit 1fead1d

Please sign in to comment.