public MBasesIni() { var sections = ParseFile("DATA\\MISSIONS\\mbases.ini").ToArray(); for (i = 0; i < sections.Length; i++) { if (sections[i].Name.ToLowerInvariant() == "mbase") { var mb = new MBase(EnumerateSections(sections)); Bases[mb.Nickname] = mb; //Add() won't overwrite duplicates i--; } } }
public void AddFile(string path, FileSystem vfs) { var sections = ParseFile(path, vfs).ToArray(); for (i = 0; i < sections.Length; i++) { if (sections[i].Name.ToLowerInvariant() == "mbase") { var mb = new MBase(EnumerateSections(sections)); Bases[mb.Nickname] = mb; //Add() won't overwrite duplicates i--; } } }