Skip to content

Commit

Permalink
Fixed outdated text and bumped config version.
Browse files Browse the repository at this point in the history
  • Loading branch information
RussDev7 committed Jul 30, 2023
1 parent 50531e0 commit b873cc0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
35 changes: 17 additions & 18 deletions src/TerrariaDepotDownloader/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Net;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml.Linq;
using Ionic.Zip;
using Microsoft.Win32;

Expand Down Expand Up @@ -152,15 +151,15 @@ private async void Form1_Load(object sender, EventArgs e)
// Populate Depot Setting Path
if (Directory.Exists(Application.StartupPath + @"\TerrariaDepots") && Properties.Settings.Default.DepotPath == "")
{
// Check If Overwrite Steam Directory Is Enabled
// Check If Use Steam Directory Is Enabled
if (checkBox2.Checked)
{
// Overwrite Steam Directory Enabled
// Use Steam Directory Enabled
Properties.Settings.Default.DepotPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + @"\Steam\steamapps\common\Terraria";
}
else
{
// Overwrite Steam Directory Disabled
// Use Steam Directory Disabled
Properties.Settings.Default.DepotPath = Application.StartupPath + @"\TerrariaDepots";
}
}
Expand Down Expand Up @@ -533,7 +532,7 @@ public void ReloadList()
listView1.Items.Clear();
listView1.Refresh();

// Check If Directory Contains A ChangeLog If Overwrite Steam Directory Is Enabled
// Check If Directory Contains A ChangeLog If Use Steam Directory Is Enabled
if (checkBox2.Checked)
{
// Ensure directory exists.
Expand Down Expand Up @@ -583,7 +582,7 @@ public void ReloadList()
}
else
{
// Check If Overwrite Steam Directory Is Enabled
// Check If Use Steam Directory Is Enabled
if (checkBox2.Checked)
{
// Check for backup folders.
Expand Down Expand Up @@ -693,10 +692,10 @@ private void ToolStripMenuItem3_Click(object sender, EventArgs e)
return;
}

// Disable If Overwrite Steam Directory Enabled
// Disable If Use Steam Directory Enabled
if (checkBox2.Checked)
{
MessageBox.Show("You cannot use this feature while \"Overwrite Steam Directory\" feature is enabled.", "TerrariaDepotDownloader v" + FileVersionInfo.GetVersionInfo(Path.GetFileName(System.Windows.Forms.Application.ExecutablePath)).FileVersion, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
MessageBox.Show("You cannot use this feature while \"Use Steam Directory\" feature is enabled.", "TerrariaDepotDownloader v" + FileVersionInfo.GetVersionInfo(Path.GetFileName(System.Windows.Forms.Application.ExecutablePath)).FileVersion, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
return;
}

Expand Down Expand Up @@ -798,10 +797,10 @@ private void Button8_Click(object sender, EventArgs e)
}
}

// Disable If Overwrite Steam Directory Enabled
// Disable If Use Steam Directory Enabled
if (checkBox2.Checked)
{
MessageBox.Show("You cannot use this feature while \"Overwrite Steam Directory\" feature is enabled.", "TerrariaDepotDownloader v" + FileVersionInfo.GetVersionInfo(Path.GetFileName(System.Windows.Forms.Application.ExecutablePath)).FileVersion, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
MessageBox.Show("You cannot use this feature while \"Use Steam Directory\" feature is enabled.", "TerrariaDepotDownloader v" + FileVersionInfo.GetVersionInfo(Path.GetFileName(System.Windows.Forms.Application.ExecutablePath)).FileVersion, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
return;
}

Expand Down Expand Up @@ -838,10 +837,10 @@ private void Button8_Click(object sender, EventArgs e)
// Remove App
private void Button5_Click(object sender, EventArgs e)
{
// Disable If Overwrite Steam Directory Enabled
// Disable If Use Steam Directory Enabled
if (checkBox2.Checked)
{
MessageBox.Show("You cannot use this feature while \"Overwrite Steam Directory\" feature is enabled.", "TerrariaDepotDownloader v" + FileVersionInfo.GetVersionInfo(Path.GetFileName(System.Windows.Forms.Application.ExecutablePath)).FileVersion, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
MessageBox.Show("You cannot use this feature while \"Use Steam Directory\" feature is enabled.", "TerrariaDepotDownloader v" + FileVersionInfo.GetVersionInfo(Path.GetFileName(System.Windows.Forms.Application.ExecutablePath)).FileVersion, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
return;
}

Expand Down Expand Up @@ -1045,7 +1044,7 @@ private async void Button2_Click(object sender, EventArgs e)
{
// Launch App
//
// Check If Overwrite Steam Directory Is Enabled
// Check If Use Steam Directory Is Enabled
if (checkBox2.Checked)
{
try
Expand Down Expand Up @@ -1148,7 +1147,7 @@ private async void Button2_Click(object sender, EventArgs e)
String DotNetLocation = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\dotnet\dotnet.exe";
// Update 1.5.0, Check If Everwrite To Steam Directory Is Enabled
String OutDir = Properties.Settings.Default.DepotPath + @"\Terraria-v" + itemRow.SubItems[0].Text;
if (checkBox2.Checked) // Overwrite Steam Directory
if (checkBox2.Checked) // Use Steam Directory
{
OutDir = Properties.Settings.Default.DepotPath;
string OutDirParent = Directory.GetParent(OutDir).ToString();
Expand Down Expand Up @@ -1395,7 +1394,7 @@ private async void ToolStripMenuItem2_Click(object sender, EventArgs e)
String DotNetLocation = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\dotnet\dotnet.exe";
// Update 1.5.0, Check If Everwrite To Steam Directory Is Enabled
String OutDir = Properties.Settings.Default.DepotPath + @"\Terraria-v" + itemRow.SubItems[0].Text;
if (checkBox2.Checked) // Overwrite Steam Directory
if (checkBox2.Checked) // Use Steam Directory
{
OutDir = Properties.Settings.Default.DepotPath;

Expand Down Expand Up @@ -1618,7 +1617,7 @@ private void CheckBox2_CheckedChanged(object sender, EventArgs e)
// Log Item
if (checkBox1.Checked)
{
Console.WriteLine("Overwrite steam directory mode cancled.");
Console.WriteLine("Use steam directory mode cancled.");
}
ReloadList();
}
Expand Down Expand Up @@ -1695,7 +1694,7 @@ private void CheckBox2_CheckedChanged(object sender, EventArgs e)
// Log Item
if (checkBox1.Checked)
{
Console.WriteLine("Overwrite steam directory mode enabled!");
Console.WriteLine("Use steam directory mode enabled!");
}
ReloadList();
}
Expand All @@ -1718,7 +1717,7 @@ private void CheckBox2_CheckedChanged(object sender, EventArgs e)
// Log Item
if (checkBox1.Checked)
{
Console.WriteLine("Overwrite steam directory mode disabled!");
Console.WriteLine("Use steam directory mode disabled!");
}
ReloadList();
}
Expand Down
4 changes: 2 additions & 2 deletions src/TerrariaDepotDownloader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.8.5.5")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.8.5.6")]

0 comments on commit b873cc0

Please sign in to comment.