From 33048b07bdb82d8a0441b140e500a0b0f8d2a782 Mon Sep 17 00:00:00 2001 From: dexy Date: Mon, 9 Mar 2020 05:52:21 +1100 Subject: [PATCH] AWC/XML conversion loop point bug fix --- CodeWalker.Core/GameFiles/FileTypes/AwcFile.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CodeWalker.Core/GameFiles/FileTypes/AwcFile.cs b/CodeWalker.Core/GameFiles/FileTypes/AwcFile.cs index d1255d9..e46a43c 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/AwcFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/AwcFile.cs @@ -1576,6 +1576,7 @@ namespace CodeWalker.GameFiles AwcXml.ValueTag(sb, indent, "PlayEnd", PlayEnd.ToString()); AwcXml.ValueTag(sb, indent, "LoopBegin", LoopBegin.ToString()); AwcXml.ValueTag(sb, indent, "LoopEnd", LoopEnd.ToString()); + AwcXml.ValueTag(sb, indent, "LoopPoint", LoopPoint.ToString()); if (UnkExtra.HasValue) { AwcXml.ValueTag(sb, indent, "UnkExtra", UnkExtra.Value.ToString()); @@ -1591,6 +1592,7 @@ namespace CodeWalker.GameFiles PlayEnd = (ushort)Xml.GetChildUIntAttribute(node, "PlayEnd"); LoopBegin = (ushort)Xml.GetChildUIntAttribute(node, "LoopBegin"); LoopEnd = (ushort)Xml.GetChildUIntAttribute(node, "LoopEnd"); + LoopPoint = Xml.GetChildIntAttribute(node, "LoopPoint"); var unode = node.SelectSingleNode("UnkExtra"); if (unode != null) {