Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Audiotool/builders/LuaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> _clientFile = [];


Expand Down Expand Up @@ -77,6 +86,8 @@ private static void GenerateClientFile(List<Audio> AudioFiles, string soundSetNa

public static void GenerateManifest(string outputPath, List<Audio> AudioFiles, bool debugFiles, string SoundSetName)
{
ResetManifestFiles();

string awcFileName = AwcFileName + ".awc";

_manifest.Add("files {");
Expand Down
Loading