public rFactor2FileList(string dir, string[] extensions) { List <string> mas_Files = GarageTools.SearchFiles(dir, "*.mas"); foreach (string mas_file in mas_Files) { MAS2Reader mas2r = new MAS2Reader(mas_file, extensions); MASFiles.AddRange(mas2r.Files); MAS.Add(mas2r); } }
private void ScanCars() { if (!ScannedCars) { if (Scanned == false) { Scan(); } // rFactor stores data in GDB files. // All relevant path data is in stored in AIW files. List <string> vehicles = GarageTools.SearchFiles(InstallationDirectory + "rFM\\", "*.rfm"); _mods = new List <IMod>(); foreach (string mod in vehicles.Where(x => !x.Contains("ANY_DEV_ONLY"))) { _mods.Add(new rFactorMod(mod)); } ScannedCars = true; } }