Skip to content

Commit

Permalink
Update decompile step to detects GoG or Steam exe
Browse files Browse the repository at this point in the history
Use MD5 hash to identify Terraria.exe and decompile accordingly.
  • Loading branch information
HTishev committed May 7, 2019
1 parent f12ebd0 commit 275d881
Show file tree
Hide file tree
Showing 12 changed files with 152 additions and 143 deletions.
4 changes: 2 additions & 2 deletions patches/GoG/Terraria.Social/SocialAPI.cs.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- src/decompiled\Terraria.Social\SocialAPI.cs
+++ src/platform\Terraria.Social\SocialAPI.cs
--- src/decompiled_gog\Terraria.Social\SocialAPI.cs
+++ src/decompiled\Terraria.Social\SocialAPI.cs
@@ -34,6 +_,7 @@
if (!mode.HasValue)
{
Expand Down
4 changes: 2 additions & 2 deletions patches/GoG/Terraria/Projectile.cs.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- src/decompiled\Terraria\Projectile.cs
+++ src/platform\Terraria\Projectile.cs
--- src/decompiled_gog\Terraria\Projectile.cs
+++ src/decompiled\Terraria\Projectile.cs
@@ -12706,9 +_,9 @@
string name;
if (Main.player[this.owner].active && (name = Main.player[this.owner].name) != null)
Expand Down
4 changes: 0 additions & 4 deletions patches/Steam/.gitignore

This file was deleted.

51 changes: 33 additions & 18 deletions setup/Properties/Settings.Designer.cs

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

9 changes: 9 additions & 0 deletions setup/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@
<Setting Name="ServerVersion" Type="System.String" Scope="Application">
<Value Profile="(Default)">1.3.5.1</Value>
</Setting>
<Setting Name="SteamClientWinMD5" Type="System.String" Scope="Application">
<Value Profile="(Default)">3179a1ec67d5f80bfb77175c403d59c7</Value>
</Setting>
<Setting Name="GoGClientWinMD5" Type="System.String" Scope="Application">
<Value Profile="(Default)">b92f242bc874dddbf08f705661b313a9</Value>
</Setting>
<Setting Name="DecompiledDiffCutoff" Type="System.DateTime" Scope="User">
<Value Profile="(Default)">2015-01-01</Value>
</Setting>
</Settings>
</SettingsFile>
120 changes: 33 additions & 87 deletions setup/Setup/MainForm.Designer.cs

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

Loading

0 comments on commit 275d881

Please sign in to comment.