TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ TryInitViaGameServer()

static bool Terraria.Social.Steam.SteamedWraps.TryInitViaGameServer ( )
inlinestatic

Definition at line 101 of file SteamedWraps.cs.

102 {
103 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
105 try
106 {
107 if (!GameServer.Init(0u, (ushort)7775, (ushort)7774, (EServerMode)1, "0.11.9.0"))
108 {
109 return false;
110 }
111 SteamGameServer.SetGameDescription("tModLoader Mod Browser");
112 SteamGameServer.SetProduct(1281930u.ToString());
113 SteamGameServer.LogOnAnonymous();
114 }
115 catch (Exception e)
116 {
117 Logging.tML.Error((object)e);
118 return false;
119 }
120 Logging.tML.Info((object)"SteamBackend: Running non-standard Steam GameServer API");
121 SteamAvailable = true;
122 return true;
123 }
static void SetAppId(AppId_t appId)
Definition Steam.cs:68
static AppId_t TMLAppID_t
Definition Steam.cs:19

References Terraria.ModLoader.Engine.Steam.SetAppId(), Terraria.Social.Steam.SteamedWraps.SteamAvailable, Terraria.ModLoader.Logging.tML, and Terraria.ModLoader.Engine.Steam.TMLAppID_t.

Referenced by Terraria.Social.Steam.SteamedWraps.Initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: