/// <summary> /// Start the patching /// </summary> public void PatchFile(DeviceEnumerator device) { var deviceToReplaceWith = long.Parse(device.Id, System.Globalization.NumberStyles.HexNumber); var patchPattern = BitConverter.GetBytes(deviceToReplaceWith); if (Patcher.Indexes.Count > 0) { foreach (var location in Patcher.Indexes) { Patcher.ReplaceBytes(location, patchPattern); } Patcher.WritePatched(); } }
/// <summary> /// Start the patching /// </summary> public void PatchFile(DeviceEnumerator device) { var deviceToReplaceWith = long.Parse(device.Id, System.Globalization.NumberStyles.HexNumber); var patchPattern = BitConverter.GetBytes(deviceToReplaceWith); if (Patcher.Indexes.Count > 0) { foreach (var location in Patcher.Indexes) { Patcher.ReplaceBytes(location, patchPattern); } Patcher.WritePatched(); } }