Ejemplo n.º 1
0
        /// <summary>
        /// Open a PATCH file from the FileInfo given.
        /// </summary>
        /// <param name="file"></param>
        private void OpenPATCH(FileInfo file)
        {
            Log.WriteLine("Opening PATCH: " + file.Name);

            infoText.Text = "Opening PATCH..";

            PatchFile patch;

            using (var input = File.OpenRead(file.FullName))
            {
                patch      = new PatchFile();
                patch.file = file;
                patch.Deserialize(input, Gibbed.IO.Endian.Big);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Open a PATCH file from the FileInfo given.
        /// </summary>
        /// <param name="file"></param>
        private void OpenPATCH(FileInfo file)
        {
            Log.WriteLine("Opening PATCH: " + file.Name);

            infoText.Text = "Opening PATCH..";

            PatchFile patch;

            using (BinaryReader reader = new BinaryReader(File.Open(file.FullName, FileMode.Open)))
            {
                patch      = new PatchFile();
                patch.file = file;
                patch.Deserialize(reader, Gibbed.IO.Endian.Little);
            }
        }