From b6d7fc041bac452a9612bfe8f3a4559d6d47cdbc Mon Sep 17 00:00:00 2001 From: Zoo Date: Fri, 22 Aug 2025 11:14:05 +0200 Subject: [PATCH] Update LuaBuilder.cs --- Audiotool/builders/LuaBuilder.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Audiotool/builders/LuaBuilder.cs b/Audiotool/builders/LuaBuilder.cs index 593daec..625e16a 100644 --- a/Audiotool/builders/LuaBuilder.cs +++ b/Audiotool/builders/LuaBuilder.cs @@ -21,6 +21,15 @@ public static class LuaBuilder "" ]; + private static readonly int _manifestHeaderCount = _manifest.Count; + + // Checks for all added files in the manifest and removes any that are not part of the header. + private static void ResetManifestFiles() + { + if (_manifest.Count > _manifestHeaderCount) + _manifest.RemoveRange(_manifestHeaderCount, _manifest.Count - _manifestHeaderCount); + } + private readonly static List _clientFile = []; @@ -77,6 +86,8 @@ private static void GenerateClientFile(List