public DowModuleFile Load(string filePath) { IniData data = this.parser.ReadFile(filePath); KeyDataCollection global = data["global"]; var reg = new Regex(@"^RequiredMod\.\d+$"); string modFolder = global["ModFolder"]; return(new DowModuleFile() { UIName = global["UIName"], Description = global["Description"], DllName = global["DllName"], Playable = "1".Equals(global["Playable"]), ModFolder = modFolder, ModVersion = global["ModVersion"], RequiredMods = global.Where(x => reg.IsMatch(x.KeyName)).Select(x => x.Value).ToArray(), IsVanilla = DowConstants.IsVanilla(modFolder) }); }