This contains the logic to find the video controller
Ejemplo n.º 1
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();
			}
		}
Ejemplo n.º 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();
            }
        }