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