/// <summary> /// Load a single soundcache /// </summary> /// <param name="filename"></param> public void LoadBundle(string filename) { if (Archives.ContainsKey(filename)) { return; } var bundle = new SoundCache(filename); foreach (var item in bundle.Files) { if (!Items.ContainsKey(item.Name)) { Items.Add(item.Name, new List <IWitcherFile>()); } Items[item.Name].Add(item); } Archives.Add(filename, bundle); }
/// <summary> /// Load a single mod soundcache /// </summary> /// <param name="filename"></param> private void LoadModBundle(string filename) { if (Archives.ContainsKey(filename)) { return; } var bundle = new SoundCache(filename); foreach (var item in bundle.Files) { if (!Items.ContainsKey(GetModFolder(filename) + "\\" + item.Name)) { Items.Add(GetModFolder(filename) + "\\" + item.Name, new List <IWitcherFile>()); } Items[GetModFolder(filename) + "\\" + item.Name].Add(item); } Archives.Add(filename, bundle); }