// Token: 0x0600003C RID: 60 RVA: 0x00004DC0 File Offset: 0x00002FC0 public PlayerListUI(string _listName, Color _listColour, bool _restricted, PlayerListElement _Config, ListView _ListView, CheckBox _CheckBoxEnable, Label _LabelCount, Label _LabelBlockedConnections, Button _ButtonAdd, Button _ButtonRemove, Button _ButtonEdit, Button _ButtonViewProfile, Button _ButtonImport, Button _ButtonExport) { DebugTools.Print("Startup: Initialising " + _listName + " user interface."); this.listName = _listName; this.listColour = _listColour; this.restricted = _restricted; this.Config = _Config; this.ListView = _ListView; this.LabelCount = _LabelCount; this.LabelBlockedConnections = _LabelBlockedConnections; this.CheckBoxEnable = _CheckBoxEnable; this.ButtonAdd = _ButtonAdd; this.ButtonRemove = _ButtonRemove; this.ButtonEdit = _ButtonEdit; this.ButtonViewProfile = _ButtonViewProfile; this.ButtonImport = _ButtonImport; this.ButtonExport = _ButtonExport; string path = Application.StartupPath + "/" + this.listName + "_encrypted.txt"; if (this.restricted) { this.Config.Players.Clear(); if (File.Exists(path)) { DebugTools.Print(PlayerListUI.UppercaseFirst(this.listName) + ": Importing from encrypted text file."); string text = RijndaelManagedEncryption.DecryptRijndael(File.ReadAllText(path)); if (text != "") { this.TextImport(text.Split("\n".ToCharArray())); } else { MessageBox.Show(string.Concat(new string[] { "Failed to load ", this.listName, " from ", this.listName, "_encrypted.txt" }), PlayerListUI.UppercaseFirst(this.listName), MessageBoxButtons.OK, MessageBoxIcon.Hand); } } else { MessageBox.Show(string.Concat(new string[] { "Could not find: ", this.listName, "_encrypted.txt\n\nNo ", this.listName, " has been loaded." }), PlayerListUI.UppercaseFirst(this.listName), MessageBoxButtons.OK, MessageBoxIcon.Hand); } } this.UpdateStatic(); this.ListView.CreateGraphics(); }
// Token: 0x060000C2 RID: 194 RVA: 0x000153D4 File Offset: 0x000135D4 public static void ListLoad(PlayerListElement PlayerList, string listName, bool validation, int listOffset, int listPointerOffset, int countOffset) { DebugTools.Write("Game Memory: Loading " + listName + " players ... "); int num = 10192986 + listOffset + GameMemory.totalPlayerCount * 8; int num2 = num; int num3 = GameMemory.totalPlayerCount; foreach (object obj in PlayerList.Players) { PlayerElement playerElement = (PlayerElement)obj; if ((!validation || Array.IndexOf <ulong>(InternalConfig.GoldList, playerElement.SteamId) == -1) && playerElement.Enabled) { GameMemory.SetBytes(num2, BitConverter.GetBytes(playerElement.SteamId)); num2 += 8; GameMemory.totalPlayerCount++; } } GameMemory.SetBytes(10192986 + listPointerOffset, BitConverter.GetBytes(num)); GameMemory.SetBytes(10192986 + countOffset, new byte[] { Convert.ToByte(GameMemory.totalPlayerCount - num3) }); Debug.Print("done."); }