Skip to content

Commit

Permalink
Final V2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenmonoxid committed Nov 10, 2024
1 parent 3eef1d0 commit 4eea8c3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
10 changes: 6 additions & 4 deletions PatchHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ public static bool CreateBackup(string Filepath)
{
File.Copy(Filepath, FinalPath, false);
}
catch (Exception)
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
}
Expand Down Expand Up @@ -116,7 +117,7 @@ public static bool CheckExecVersion(ref FileStream Reader, execID Identifier, bo
}
else
{
return false;
return false;
}
}
else
Expand All @@ -141,11 +142,12 @@ public static bool RestoreBackup(string filePath)
{
File.Replace(FinalPath, filePath, null);
}
catch (Exception)
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}

return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion mainFrm.Designer.cs

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

2 changes: 2 additions & 0 deletions mainFrm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public mainFrm()
{
InitializeComponent();
SetTooltipSystemLanguage();

this.Text = "S6Patcher - V" + Application.ProductVersion + " - Eisenmonoxid - \"https://github.com/Eisenmonoxid/S6Patcher\"";
}
private void btnClose_Click(object sender, EventArgs e)
{
Expand Down
2 changes: 1 addition & 1 deletion mainPatcher.Designer.cs

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

14 changes: 10 additions & 4 deletions mainPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public S6Patcher(execID Identifier, ref FileStream Stream)

InitializeComponent();
InitializeControls();

this.Text = "S6Patcher - V" + Application.ProductVersion + " - Eisenmonoxid - \"https://github.com/Eisenmonoxid/S6Patcher\"";
}
private void InitializeControls()
{
Expand Down Expand Up @@ -157,8 +159,9 @@ private void SetHighResolutionTextures()
{
Resolution = Convert.ToUInt32(txtResolution.Text);
}
catch (Exception)
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}

Expand Down Expand Up @@ -186,8 +189,9 @@ private void SetAutosaveTimer()
{
autosaveTimer = Convert.ToDouble(txtAutosave.Text);
}
catch (Exception)
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}

Expand All @@ -214,8 +218,9 @@ private void SetZoomLevel()
zoomLevel = Convert.ToDouble(txtZoom.Text);
clutterFarDistance = Convert.ToSingle(txtZoom.Text);
}
catch (Exception)
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}

Expand All @@ -236,8 +241,9 @@ private void SetZoomLevel()
{
zoomLevel = Convert.ToSingle(txtZoom.Text);
}
catch (Exception)
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}

Expand Down

0 comments on commit 4eea8c3

Please sign in to comment.