Exemplo n.º 1
0
            public static List <string> Filenames(Models.Roms r)
            {
                List <string> l = new List <string>();

                foreach (string ext in r.FileExtensions)
                {
                    string[] files = Directory.GetFiles(r.Directory, "*." + ext, SearchOption.TopDirectoryOnly);
                    if (files.Length > 0)
                    {
                        l.AddRange(files.Select(a => Path.GetFileNameWithoutExtension(a).ToLower()).ToArray());
                    }
                }

                l.Sort();

                return(l);
            }
Exemplo n.º 2
0
 public static List <string> Filenames(Models.Roms.RomType rType)
 {
     Models.Roms r = new Models.Roms(rType);
     return(Filenames(r));
 }