mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-23 07:22:52 +08:00
AWC/XML conversion loop point bug fix
This commit is contained in:
parent
5b0fafa121
commit
33048b07bd
@ -1576,6 +1576,7 @@ namespace CodeWalker.GameFiles
|
|||||||
AwcXml.ValueTag(sb, indent, "PlayEnd", PlayEnd.ToString());
|
AwcXml.ValueTag(sb, indent, "PlayEnd", PlayEnd.ToString());
|
||||||
AwcXml.ValueTag(sb, indent, "LoopBegin", LoopBegin.ToString());
|
AwcXml.ValueTag(sb, indent, "LoopBegin", LoopBegin.ToString());
|
||||||
AwcXml.ValueTag(sb, indent, "LoopEnd", LoopEnd.ToString());
|
AwcXml.ValueTag(sb, indent, "LoopEnd", LoopEnd.ToString());
|
||||||
|
AwcXml.ValueTag(sb, indent, "LoopPoint", LoopPoint.ToString());
|
||||||
if (UnkExtra.HasValue)
|
if (UnkExtra.HasValue)
|
||||||
{
|
{
|
||||||
AwcXml.ValueTag(sb, indent, "UnkExtra", UnkExtra.Value.ToString());
|
AwcXml.ValueTag(sb, indent, "UnkExtra", UnkExtra.Value.ToString());
|
||||||
@ -1591,6 +1592,7 @@ namespace CodeWalker.GameFiles
|
|||||||
PlayEnd = (ushort)Xml.GetChildUIntAttribute(node, "PlayEnd");
|
PlayEnd = (ushort)Xml.GetChildUIntAttribute(node, "PlayEnd");
|
||||||
LoopBegin = (ushort)Xml.GetChildUIntAttribute(node, "LoopBegin");
|
LoopBegin = (ushort)Xml.GetChildUIntAttribute(node, "LoopBegin");
|
||||||
LoopEnd = (ushort)Xml.GetChildUIntAttribute(node, "LoopEnd");
|
LoopEnd = (ushort)Xml.GetChildUIntAttribute(node, "LoopEnd");
|
||||||
|
LoopPoint = Xml.GetChildIntAttribute(node, "LoopPoint");
|
||||||
var unode = node.SelectSingleNode("UnkExtra");
|
var unode = node.SelectSingleNode("UnkExtra");
|
||||||
if (unode != null)
|
if (unode != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user