Inheritance: FirmwareFile
コード例 #1
0
ファイル: FirmwareProvider.cs プロジェクト: joshperry/stuff
        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");
            }
        }
コード例 #2
0
        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");
                }
            }
        }