Example #1
0
        private void buttonScanFov_Click(object sender, EventArgs e)
        {
            PatchInfo fovPatch = VersionInfo.GetVersion(comboBoxVersion.SelectedIndex).FovPatch;
            float?    result   = Patcher.Scan(this, textBoxBin.Text, fovPatch);

            if (result != null)
            {
                textBoxCurrentFov.Text = result.ToString();
                buttonPatchFov.Enabled = true;
                Log("{0} scanned successfully", fovPatch.Filename);
            }
        }
Example #2
0
        private void buttonRestoreHudFov_Click(object sender, EventArgs e)
        {
            PatchInfo hudFovPatch = VersionInfo.GetVersion(comboBoxVersion.SelectedIndex).HudFovPatch;
            bool      success     = Patcher.Restore(this, textBoxBin.Text, hudFovPatch);

            if (success)
            {
                textBoxCurrentHudFov.Clear();
                buttonPatchHudFov.Enabled = false;
                Log("{0} backup restored successfully", hudFovPatch.Filename);
            }
        }