Skip to content

Commit

Permalink
Avoid audio bank path collision double ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0ade committed Sep 13, 2021
1 parent d793da8 commit c6eb492
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Celeste.Mod.mm/Patches/Audio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ public static void Init() {

// Load any additional banks.
lock (Everest.Content.Map) {
foreach (ModAsset asset in Everest.Content.Map.Values.Where(asset => asset.Type == typeof(AssetTypeBank)))
IngestBank(asset);
foreach (ModAsset asset in Everest.Content.Map.Values.Where(asset => asset.Type == typeof(AssetTypeBank))) {
if (!ingestedModBankPaths.Contains(asset.PathVirtual)) {
IngestBank(asset);
}
}
}

AudioInitialized = true;
Expand Down

0 comments on commit c6eb492

Please sign in to comment.