Exemple #1
0
        public static HashSet <GamePath> GetAllFiles(RelPath relPath, ModMeta meta)
        {
            var ret = new HashSet <GamePath>();

            foreach (var option in meta.Groups.Values.SelectMany(g => g.Options))
            {
                if (option.OptionFiles.TryGetValue(relPath, out var files))
                {
                    ret.UnionWith(files);
                }
            }

            if (ret.Count == 0)
            {
                ret.Add(relPath.ToGamePath());
            }

            return(ret);
        }