mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 15:02:54 +08:00
Escape ClipBase.Hash when writing XML
Some YCDs have special characters in the clip hash, which causes the XML to be invalid.
This commit is contained in:
parent
023cc1eb47
commit
7542dabb71
@ -3151,7 +3151,7 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
public virtual void WriteXml(StringBuilder sb, int indent)
|
public virtual void WriteXml(StringBuilder sb, int indent)
|
||||||
{
|
{
|
||||||
YcdXml.StringTag(sb, indent, "Hash", YcdXml.HashString(Hash));
|
YcdXml.StringTag(sb, indent, "Hash", MetaXml.XmlEscape(YcdXml.HashString(Hash)));
|
||||||
YcdXml.StringTag(sb, indent, "Name", MetaXml.XmlEscape(Name));
|
YcdXml.StringTag(sb, indent, "Name", MetaXml.XmlEscape(Name));
|
||||||
YcdXml.ValueTag(sb, indent, "Type", Type.ToString());
|
YcdXml.ValueTag(sb, indent, "Type", Type.ToString());
|
||||||
YcdXml.ValueTag(sb, indent, "Unknown30", Unknown_30h.ToString());
|
YcdXml.ValueTag(sb, indent, "Unknown30", Unknown_30h.ToString());
|
||||||
|
Loading…
Reference in New Issue
Block a user