Skip to content

Commit

Permalink
updated source code
Browse files Browse the repository at this point in the history
Updated source code
  • Loading branch information
Backporter committed Jun 7, 2019
1 parent 99b9abc commit 7b00a1e
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 48 deletions.
Binary file modified .vs/Eboot.bin Patcher/v15/.suo
Binary file not shown.
Binary file modified .vs/Eboot.bin Patcher/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/Eboot.bin Patcher/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
60 changes: 49 additions & 11 deletions Eboot.bin Patcher/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 53 additions & 35 deletions Eboot.bin Patcher/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ public Main()
InitializeComponent();
}

private void Main_Load(object sender, EventArgs e)
{
comboBox1.Text = "";
if (comboBox1.Text == "")
{
comboBox1.SelectedIndex = -0;
}
}

private void Credits_Click(object sender, EventArgs e)
{
if (Application.OpenForms["Credits"] == null)
Expand Down Expand Up @@ -105,7 +114,11 @@ private void updates_Click(object sender, EventArgs e)

private void button3_Click(object sender, EventArgs e)
{
if (textBox1.Text == "Extracted FPKG US skyrim 1.09")
if (comboBox1.SelectedIndex == -1)
{
MessageBox.Show("Pick a game to patch");
}
if (comboBox1.Text == "Extracted FPKG US skyrim 1.09")
{
BinaryWriter Sbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Sbw.BaseStream.Position = 0x18B706D;
Expand All @@ -128,7 +141,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "Extracted FPKG US skyrim 1.08")
if (comboBox1.Text == "Extracted FPKG US skyrim 1.08")
{
BinaryWriter Sbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Sbw.BaseStream.Position = 0x18B6C4D;
Expand All @@ -151,7 +164,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "Extracted FPKG EU skyrim 1.09")
if (comboBox1.Text == "Extracted FPKG EU skyrim 1.09")
{
BinaryWriter Sbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Sbw.BaseStream.Position = 0x18B706D;
Expand All @@ -174,12 +187,12 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "Extracted FPKG EU skyrim 1.08")
if (comboBox1.Text == "Extracted FPKG EU skyrim 1.08")
{
MessageBox.Show("where did you get this update?");
}

if (textBox1.Text == "US skyrim 1.09")
if (comboBox1.Text == "US skyrim 1.09")
{
BinaryWriter Sbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Sbw.BaseStream.Position = 0x18ABEBD;
Expand All @@ -202,7 +215,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "EU skyrim 1.09")
if (comboBox1.Text == "EU skyrim 1.09")
{
BinaryWriter Sbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Sbw.BaseStream.Position = 0x18B6F0D;
Expand All @@ -225,7 +238,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

else if (textBox1.Text == "US skyrim 1.08")
else if (comboBox1.Text == "US skyrim 1.08")
{
BinaryWriter S8Sbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
S8Sbw.BaseStream.Position = 0x18ABA9D;
Expand All @@ -249,72 +262,72 @@ private void button3_Click(object sender, EventArgs e)
}


else if (textBox1.Text == "US skyrim 1.07")
else if (comboBox1.Text == "US skyrim 1.07")
{
MessageBox.Show("i couldn't find 1.07's update sorry :(");
}
else if (textBox1.Text == "US skyrim 1.06")
else if (comboBox1.Text == "US skyrim 1.06")
{
MessageBox.Show("this update is not supported sorry :(");
}
else if (textBox1.Text == "US skyrim 1.05")
else if (comboBox1.Text == "US skyrim 1.05")
{
MessageBox.Show("this update is not supported sorry :(");
}
else if (textBox1.Text == "US skyrim 1.04")
else if (comboBox1.Text == "US skyrim 1.04")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "US skyrim 1.03")
else if (comboBox1.Text == "US skyrim 1.03")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "US skyrim 1.02")
else if (comboBox1.Text == "US skyrim 1.02")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "US skyrim 1.01")
else if (comboBox1.Text == "US skyrim 1.01")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "US skyrim 1.00")
else if (comboBox1.Text == "US skyrim 1.00")
{
MessageBox.Show("this can not be patched and does not need patching");
}
else if (textBox1.Text == "EU skyrim 1.07")
else if (comboBox1.Text == "EU skyrim 1.07")
{
MessageBox.Show("i couldn't find 1.07's update sorry :(");
}
else if (textBox1.Text == "EU skyrim 1.06")
else if (comboBox1.Text == "EU skyrim 1.06")
{
MessageBox.Show("this update is not supported sorry :(");
}
else if (textBox1.Text == "EU skyrim 1.05")
else if (comboBox1.Text == "EU skyrim 1.05")
{
MessageBox.Show("this update is not supported sorry :(");
}
else if (textBox1.Text == "EU skyrim 1.04")
else if (comboBox1.Text == "EU skyrim 1.04")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "EU skyrim 1.03")
else if (comboBox1.Text == "EU skyrim 1.03")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "EU skyrim 1.02")
else if (comboBox1.Text == "EU skyrim 1.02")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "EU skyrim 1.01")
else if (comboBox1.Text == "EU skyrim 1.01")
{
MessageBox.Show("where did you get this update?");
}
else if (textBox1.Text == "EU skyrim 1.00")
else if (comboBox1.Text == "EU skyrim 1.00")
{
MessageBox.Show("this can not be patched and does not need patching");
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (textBox1.Text == "Extracted FPKG US fallout 4 1.22")
if (comboBox1.Text == "Extracted FPKG US fallout 4 1.22")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E57514;
Expand All @@ -339,7 +352,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "Extracted FPKG US fallout 4 1.21")
if (comboBox1.Text == "Extracted FPKG US fallout 4 1.21")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E57514;
Expand All @@ -364,7 +377,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "US fallout 4 1.22")
if (comboBox1.Text == "US fallout 4 1.22")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E49DE4;
Expand All @@ -389,7 +402,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "US fallout 4 1.21")
if (comboBox1.Text == "US fallout 4 1.21")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E49DE4;
Expand All @@ -414,12 +427,12 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "US fallout 4 1.20")
if (comboBox1.Text == "US fallout 4 1.20")
{
MessageBox.Show("i couldn't find 1.20's update sorry :(");
}

if (textBox1.Text == "US fallout 4 1.19")
if (comboBox1.Text == "US fallout 4 1.19")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E49784;
Expand All @@ -444,7 +457,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

if (textBox1.Text == "Extracted FPKG US fallout 4 1.19")
if (comboBox1.Text == "Extracted FPKG US fallout 4 1.19")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E56EB4;
Expand All @@ -469,7 +482,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

else if (textBox1.Text == "Extracted FPKG EU fallout 4 goty 1.20")
else if (comboBox1.Text == "Extracted FPKG EU fallout 4 goty 1.20")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E575B4;
Expand All @@ -493,7 +506,7 @@ private void button3_Click(object sender, EventArgs e)
Fbw.Close();
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}
if (textBox1.Text == "EU fallout 4 goty 1.20")
if (comboBox1.Text == "EU fallout 4 goty 1.20")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E57454;
Expand All @@ -517,7 +530,7 @@ private void button3_Click(object sender, EventArgs e)
Fbw.Close();
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}
if (textBox1.Text == "EU fallout 4 goty 1.22")
if (comboBox1.Text == "EU fallout 4 goty 1.22")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E573B4;
Expand All @@ -541,7 +554,7 @@ private void button3_Click(object sender, EventArgs e)
Fbw.Close();
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}
if (textBox1.Text == "Extracted FPKG EU fallout 4 goty 1.22")
if (comboBox1.Text == "Extracted FPKG EU fallout 4 goty 1.22")
{
BinaryWriter Fbw = new BinaryWriter(File.OpenWrite(OFD.FileName));
Fbw.BaseStream.Position = 0x1E57514;
Expand All @@ -566,7 +579,7 @@ private void button3_Click(object sender, EventArgs e)
MessageBox.Show("Your eboot.bin has been patched and will now look for mods.txt");
}

else if (textBox1.Text == "")
else if (comboBox1.Text == "")
{
MessageBox.Show("You Don't got anything typed");
}
Expand All @@ -580,5 +593,10 @@ private void button2_Click(object sender, EventArgs e)
form.Show();
}
}

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{

}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Eboot.bin Patcher/obj/Release/Eboot.bin Patcher.exe
Binary file not shown.
Binary file modified Eboot.bin Patcher/obj/Release/Eboot.bin Patcher.pdb
Binary file not shown.
Loading

0 comments on commit 7b00a1e

Please sign in to comment.