private void PatchFirmwareImages(string PatchContainerFileName, List <string> ImagesToFlash)
        {
            BinaryPatcherLib.BinaryPatcher PatchEngine;

            for (int i = 0; i < ImagesToFlash.Count; i++)
            {
                if (File.Exists(".\\Patches\\" + PatchContainerFileName + "\\" + Path.GetFileNameWithoutExtension(ImagesToFlash[i]) + ".xml"))
                {
                    PatchEngine = new BinaryPatcherLib.BinaryPatcher(ImagesToFlash[i], ".\\Patches\\" + PatchContainerFileName + "\\" + Path.GetFileNameWithoutExtension(ImagesToFlash[i]) + ".xml");
                    PatchEngine.ApplyPatchToFile();
                }
            }
        }
Example #2
0
 private void btnCheckAvailablePatches_Click(object sender, EventArgs e)
 {
     string[] AvailablePatches;
     Patcher          = new BinaryPatcherLib.BinaryPatcher(FilePath, PatchContainerPath);
     AvailablePatches = Patcher.GetPatchListID();
 }
Example #3
0
 private void btnPatchFile_Click(object sender, EventArgs e)
 {
     Patcher = new BinaryPatcherLib.BinaryPatcher(FilePath, PatchContainerPath);
     Patcher.ApplyPatchToFile();
 }