mirror of
https://github.com/Deltafox79/Win_1337_Apply_Patch
synced 2025-08-21 05:44:03 -07:00
v1.4
v1.4 Released...
This commit is contained in:
parent
0759d094bc
commit
4eec10f6cd
6 changed files with 57 additions and 5 deletions
4
Win_1337_Patch/1337.Designer.cs
generated
4
Win_1337_Patch/1337.Designer.cs
generated
|
@ -172,6 +172,7 @@
|
||||||
this.controlloBackup.TabIndex = 76;
|
this.controlloBackup.TabIndex = 76;
|
||||||
this.controlloBackup.Text = "Backup";
|
this.controlloBackup.Text = "Backup";
|
||||||
this.controlloBackup.UseVisualStyleBackColor = true;
|
this.controlloBackup.UseVisualStyleBackColor = true;
|
||||||
|
this.controlloBackup.CheckedChanged += new System.EventHandler(this.controlloBackup_CheckedChanged);
|
||||||
//
|
//
|
||||||
// cfileoffsett
|
// cfileoffsett
|
||||||
//
|
//
|
||||||
|
@ -186,6 +187,7 @@
|
||||||
this.cfileoffsett.TabIndex = 77;
|
this.cfileoffsett.TabIndex = 77;
|
||||||
this.cfileoffsett.Text = "Fix Offset";
|
this.cfileoffsett.Text = "Fix Offset";
|
||||||
this.cfileoffsett.UseVisualStyleBackColor = true;
|
this.cfileoffsett.UseVisualStyleBackColor = true;
|
||||||
|
this.cfileoffsett.CheckedChanged += new System.EventHandler(this.cfileoffsett_CheckedChanged);
|
||||||
//
|
//
|
||||||
// Form1
|
// Form1
|
||||||
//
|
//
|
||||||
|
@ -209,7 +211,7 @@
|
||||||
this.MinimumSize = new System.Drawing.Size(448, 122);
|
this.MinimumSize = new System.Drawing.Size(448, 122);
|
||||||
this.Name = "Form1";
|
this.Name = "Form1";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
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.Load += new System.EventHandler(this.DFoX_Load);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
|
@ -116,14 +116,14 @@ namespace Win_1337_Patch
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
string[] lines = File.ReadAllLines(f1337);
|
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);
|
MessageBox.Show("File 1337 is not valid...", "Info...", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (lines[0].Substring(1).ToLower() != Path.GetFileName(exe).ToLower())
|
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;
|
return;
|
||||||
}
|
}
|
||||||
byte[] bexe = File.ReadAllBytes(exe);
|
byte[] bexe = File.ReadAllBytes(exe);
|
||||||
|
@ -185,6 +185,8 @@ namespace Win_1337_Patch
|
||||||
{
|
{
|
||||||
string urlexe = Properties.Settings.Default["urlexe"].ToString().Trim();
|
string urlexe = Properties.Settings.Default["urlexe"].ToString().Trim();
|
||||||
string url1337 = Properties.Settings.Default["url1337"].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 != "")
|
if (urlexe != "")
|
||||||
{
|
{
|
||||||
texe.Text = Ellipsis.Compact(urlexe, texe, EllipsisFormat.Path);
|
texe.Text = Ellipsis.Compact(urlexe, texe, EllipsisFormat.Path);
|
||||||
|
@ -202,5 +204,17 @@ namespace Win_1337_Patch
|
||||||
else
|
else
|
||||||
t1337.Text = "Select .1337 File...";
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
// È 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:
|
// usando l'asterisco '*' come illustrato di seguito:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.3.0.0")]
|
[assembly: AssemblyVersion("1.4.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.3.0.0")]
|
[assembly: AssemblyFileVersion("1.4.0.0")]
|
||||||
|
|
24
Win_1337_Patch/Properties/Settings.Designer.cs
generated
24
Win_1337_Patch/Properties/Settings.Designer.cs
generated
|
@ -46,5 +46,29 @@ namespace Win_1337_Patch.Properties {
|
||||||
this["url1337"] = value;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,11 @@
|
||||||
<Setting Name="url1337" Type="System.String" Scope="User">
|
<Setting Name="url1337" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="fixoffset" Type="System.Boolean" Scope="User">
|
||||||
|
<Value Profile="(Default)">True</Value>
|
||||||
|
</Setting>
|
||||||
|
<Setting Name="backup" Type="System.Boolean" Scope="User">
|
||||||
|
<Value Profile="(Default)">True</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
|
@ -13,6 +13,12 @@
|
||||||
<setting name="url1337" serializeAs="String">
|
<setting name="url1337" serializeAs="String">
|
||||||
<value />
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="fixoffset" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
|
<setting name="backup" serializeAs="String">
|
||||||
|
<value>True</value>
|
||||||
|
</setting>
|
||||||
</Win_1337_Patch.Properties.Settings>
|
</Win_1337_Patch.Properties.Settings>
|
||||||
</userSettings>
|
</userSettings>
|
||||||
</configuration>
|
</configuration>
|
Loading…
Add table
Add a link
Reference in a new issue