This contains the logic to find the video controller
		/// <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();
			}
		}
Beispiel #2
0
        /// <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();
            }
        }