private void LoadFirmwareFiles() { string[] paths = File.ReadAllLines(@"C:\Users\All Users\QUALCOMM\QDLService\Options.txt"); if (paths.Length >= 2) { foreach (string path in paths) { if (path.ToLowerInvariant().Contains("amss")) { AmssFirmware = new AmssFirmwareFile(path); } else if (path.ToLowerInvariant().Contains("apps")) { AppsFirmware = new AppsFirmwareFile(path); } } if (AmssFirmware == null || AppsFirmware == null) throw new ApplicationException(@"Firmware paths in C:\Users\All Users\QUALCOMM\QDLService\Options.txt are missing or not valid"); } }
private void LoadFirmwareFiles() { string[] paths = File.ReadAllLines(@"C:\Users\All Users\QUALCOMM\QDLService\Options.txt"); if (paths.Length >= 2) { foreach (string path in paths) { if (path.ToLowerInvariant().Contains("amss")) { AmssFirmware = new AmssFirmwareFile(path); } else if (path.ToLowerInvariant().Contains("apps")) { AppsFirmware = new AppsFirmwareFile(path); } } if (AmssFirmware == null || AppsFirmware == null) { throw new ApplicationException(@"Firmware paths in C:\Users\All Users\QUALCOMM\QDLService\Options.txt are missing or not valid"); } } }