diff --git a/Win_1337_Patch/1337.Designer.cs b/Win_1337_Patch/1337.Designer.cs
index 7c18a62..c14a55c 100644
--- a/Win_1337_Patch/1337.Designer.cs
+++ b/Win_1337_Patch/1337.Designer.cs
@@ -172,6 +172,7 @@
this.controlloBackup.TabIndex = 76;
this.controlloBackup.Text = "Backup";
this.controlloBackup.UseVisualStyleBackColor = true;
+ this.controlloBackup.CheckedChanged += new System.EventHandler(this.controlloBackup_CheckedChanged);
//
// cfileoffsett
//
@@ -186,6 +187,7 @@
this.cfileoffsett.TabIndex = 77;
this.cfileoffsett.Text = "Fix Offset";
this.cfileoffsett.UseVisualStyleBackColor = true;
+ this.cfileoffsett.CheckedChanged += new System.EventHandler(this.cfileoffsett_CheckedChanged);
//
// Form1
//
@@ -209,7 +211,7 @@
this.MinimumSize = new System.Drawing.Size(448, 122);
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Win 1337 Apply Patch File v1.3...";
+ this.Text = "Win 1337 Apply Patch File v1.4...";
this.Load += new System.EventHandler(this.DFoX_Load);
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/Win_1337_Patch/1337.cs b/Win_1337_Patch/1337.cs
index e468af5..5dfb61f 100644
--- a/Win_1337_Patch/1337.cs
+++ b/Win_1337_Patch/1337.cs
@@ -116,14 +116,14 @@ namespace Win_1337_Patch
return;
}
string[] lines = File.ReadAllLines(f1337);
- if (lines[0].Substring(0,1) != ">")
+ if (lines[0].Substring(0, 1) != ">")
{
MessageBox.Show("File 1337 is not valid...", "Info...", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (lines[0].Substring(1).ToLower() != Path.GetFileName(exe).ToLower())
{
- MessageBox.Show("File 1337 is not valid for selected exe...\n\n(\"" + lines[0].Substring(1).ToLower() + "\" vs \"" + Path.GetFileName(exe).ToLower() + "\")", "Info...", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("File 1337 is not valid for selected exe/dll...\n\n(\"" + lines[0].Substring(1).ToLower() + "\" but you have selected \"" + Path.GetFileName(exe).ToLower() + "\")", "Info...", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
byte[] bexe = File.ReadAllBytes(exe);
@@ -185,6 +185,8 @@ namespace Win_1337_Patch
{
string urlexe = Properties.Settings.Default["urlexe"].ToString().Trim();
string url1337 = Properties.Settings.Default["url1337"].ToString().Trim();
+ cfileoffsett.Checked = (bool)Properties.Settings.Default["fixoffset"];
+ controlloBackup.Checked = (bool)Properties.Settings.Default["backup"];
if (urlexe != "")
{
texe.Text = Ellipsis.Compact(urlexe, texe, EllipsisFormat.Path);
@@ -202,5 +204,17 @@ namespace Win_1337_Patch
else
t1337.Text = "Select .1337 File...";
}
+
+ private void cfileoffsett_CheckedChanged(object sender, EventArgs e)
+ {
+ Properties.Settings.Default["fixoffset"] = cfileoffsett.Checked;
+ Properties.Settings.Default.Save();
+ }
+
+ private void controlloBackup_CheckedChanged(object sender, EventArgs e)
+ {
+ Properties.Settings.Default["backup"] = controlloBackup.Checked;
+ Properties.Settings.Default.Save();
+ }
}
}
diff --git a/Win_1337_Patch/Properties/AssemblyInfo.cs b/Win_1337_Patch/Properties/AssemblyInfo.cs
index 5072d45..2435c69 100644
--- a/Win_1337_Patch/Properties/AssemblyInfo.cs
+++ b/Win_1337_Patch/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.3.0.0")]
-[assembly: AssemblyFileVersion("1.3.0.0")]
+[assembly: AssemblyVersion("1.4.0.0")]
+[assembly: AssemblyFileVersion("1.4.0.0")]
diff --git a/Win_1337_Patch/Properties/Settings.Designer.cs b/Win_1337_Patch/Properties/Settings.Designer.cs
index d17e79a..5bd05e4 100644
--- a/Win_1337_Patch/Properties/Settings.Designer.cs
+++ b/Win_1337_Patch/Properties/Settings.Designer.cs
@@ -46,5 +46,29 @@ namespace Win_1337_Patch.Properties {
this["url1337"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool fixoffset {
+ get {
+ return ((bool)(this["fixoffset"]));
+ }
+ set {
+ this["fixoffset"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool backup {
+ get {
+ return ((bool)(this["backup"]));
+ }
+ set {
+ this["backup"] = value;
+ }
+ }
}
}
diff --git a/Win_1337_Patch/Properties/Settings.settings b/Win_1337_Patch/Properties/Settings.settings
index 9266298..5645b6b 100644
--- a/Win_1337_Patch/Properties/Settings.settings
+++ b/Win_1337_Patch/Properties/Settings.settings
@@ -8,5 +8,11 @@
+
+ True
+
+
+ True
+
\ No newline at end of file
diff --git a/Win_1337_Patch/app.config b/Win_1337_Patch/app.config
index 19a095c..d5c3fae 100644
--- a/Win_1337_Patch/app.config
+++ b/Win_1337_Patch/app.config
@@ -13,6 +13,12 @@
+
+ True
+
+
+ True
+
\ No newline at end of file