// Token: 0x06000072 RID: 114 RVA: 0x0000C9B0 File Offset: 0x0000ABB0 public static string[] GetData(string args, string friendlyName) { DebugTools.Print("Steam Data: Retrieving..."); string[] array = SteamData.CaptureConsoleOutput("Steam Communicator.exe", args).Split(new string[] { "\r\n" }, StringSplitOptions.None); SteamData.errorCode = Convert.ToInt32(array[0]); if (SteamData.errorCode > 0) { SteamData.errorCode = 0; } if (SteamData.errorCode == 0) { DebugTools.Print("Steam Data: Retrieved " + friendlyName + "."); MainForm.Message("Successfully retrieved " + friendlyName + ".", 50); return(array); } DebugTools.Write("Steam Data: Failed to retrieve data, "); if (SteamData.errorCode == -1) { Debug.Print("Steam is not running."); MessageBox.Show("Steam is not running.", "Could not retrieve data.", MessageBoxButtons.OK, MessageBoxIcon.Hand); } else if (SteamData.errorCode == -2) { Debug.Print("timed out."); MessageBox.Show("Steam did not respond within 5 seconds.", "Could not retireve data.", MessageBoxButtons.OK, MessageBoxIcon.Hand); } return(null); }
// Token: 0x06000081 RID: 129 RVA: 0x0000D1E0 File Offset: 0x0000B3E0 public static void SetPlayerLimit(int limit) { DebugTools.Print("Steam Data: Setting lobby player limit to " + limit + "."); SteamData.CaptureConsoleOutput("Steam Communicator.exe", string.Concat(new object[] { "setplayerlimit ", GameData.lobbyId, " ", limit })); }
// Token: 0x06000080 RID: 128 RVA: 0x0000D18C File Offset: 0x0000B38C public static void MigrateHost(ulong steamId) { DebugTools.Print("Steam Data: Migrating host."); SteamData.CaptureConsoleOutput("Steam Communicator.exe", string.Concat(new object[] { "migratehost ", GameData.lobbyId, " ", steamId })); }