Beyond_Beyaan.Utility.GetSaveGames C# (CSharp) Method

GetSaveGames() public static method

public static GetSaveGames ( string dataSetPath ) : List
dataSetPath string
return List
        public static List<FileInfo> GetSaveGames(string dataSetPath)
        {
            string path = Path.Combine(dataSetPath, "Saves");
            DirectoryInfo di = new DirectoryInfo(path);
            if (!di.Exists)
            {
                return new List<FileInfo>();
            }
            try
            {
                return new List<FileInfo>(di.GetFiles("*.BB"));
            }
            catch
            {
                return new List<FileInfo>();
            }
        }