Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed May 18, 2020
1 parent 5bc1ceb commit f36609c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions patches/tModLoader/Terraria.Social.Steam/CoreSocialModule.cs.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
--- src/Terraria/Terraria.Social.Steam/CoreSocialModule.cs
+++ src/tModLoader/Terraria.Social.Steam/CoreSocialModule.cs
@@ -1,5 +_,6 @@
using Steamworks;
using System;
+using System.IO;
using System.Threading;
using System.Windows.Forms;
using Terraria.Localization;
@@ -9,7 +_,7 @@
public class CoreSocialModule : ISocialModule
{
Expand All @@ -9,12 +16,14 @@
private bool IsSteamValid;
private object _steamTickLock = new object();
private object _steamCallbackLock = new object();
@@ -20,14 +_,14 @@
@@ -20,14 +_,16 @@
public void Initialize() {
_instance = this;
#if CLIENT
- if (SteamAPI.RestartAppIfNecessary(new AppId_t(105600u))) {
+ if (SteamAPI.RestartAppIfNecessary(new AppId_t(1281930u))) {
+ if (System.Diagnostics.Debugger.IsAttached && !File.Exists("steam_appid.txt"))
+ File.WriteAllText("steam_appid.txt", "1281930");
+ if (SteamAPI.RestartAppIfNecessary(new AppId_t(1281930u)) && !System.Diagnostics.Debugger.IsAttached) {
Environment.Exit(1);
return;
}
Expand Down

0 comments on commit f36609c

Please sign in to comment.