Esempio n. 1
0
 // Token: 0x060000C1 RID: 193 RVA: 0x000153A0 File Offset: 0x000135A0
 public static void SLTCheckerLoad()
 {
     DebugTools.Write("Game Memory: Initialising the SLT protection checker... ");
     GameMemory.SetBytes(4688654, GameMemory.bytesSLTChecker1);
     GameMemory.SetBytes(10202730, GameMemory.bytesSLTChecker2);
     Debug.Print("done. ");
 }
Esempio n. 2
0
 // Token: 0x060000C0 RID: 192 RVA: 0x00015376 File Offset: 0x00013576
 public static void HostMigrationFixLoad()
 {
     DebugTools.Write("Game Memory: Applying host migration fix... ");
     GameMemory.SetBytes(4688306, new byte[]
     {
         3
     });
     Debug.Print("done.");
 }
Esempio n. 3
0
 // Token: 0x060000BE RID: 190 RVA: 0x000152D4 File Offset: 0x000134D4
 public static void ListCheckerLoad()
 {
     DebugTools.Write("Game Memory: Initialising banlist/whitelist system... ");
     GameMemory.SetBytes(4699264, GameMemory.bytesDetour1);
     GameMemory.SetBytes(4699250, GameMemory.bytesDetour2);
     GameMemory.SetBytes(10192986, GameMemory.bytesListChecker);
     GameMemory.SetBytes(10192993, BitConverter.GetBytes(GameData.GetLobbyTypeAddress()));
     Debug.Print("done.");
 }
Esempio n. 4
0
 // Token: 0x060000BF RID: 191 RVA: 0x00015336 File Offset: 0x00013536
 public static void FullLobbyFixLoad()
 {
     DebugTools.Write("Game Memory: Applying full lobby fix... ");
     GameMemory.SetBytes(4652369, new byte[]
     {
         20
     });
     GameMemory.SetBytes(4688226, new byte[]
     {
         20
     });
     Debug.Print("done.");
 }
Esempio n. 5
0
 // Token: 0x060000BD RID: 189 RVA: 0x000151B4 File Offset: 0x000133B4
 public static void OptionsUpdate()
 {
     if (GameMemory.gameHandle > 0)
     {
         DebugTools.Print("Game Memory: Begin configuration update.");
         if (Program.Config.HostOptions.SkipLobbySearch)
         {
             GameMemory.SetBytes(4759930, GameMemory.bytesSkipSearchEnable);
         }
         else
         {
             GameMemory.SetBytes(4759930, GameMemory.bytesSkipSearchDisable);
         }
         if (Program.Config.HostOptions.DisableMirrorTracks)
         {
             GameMemory.SetBytes(8661919, GameMemory.bytesMirrorDisable);
         }
         else
         {
             GameMemory.SetBytes(8661919, GameMemory.bytesMirrorEnable);
         }
         GameMemory.totalPlayerCount = 0;
         if (Program.Config.Banlist.Enabled)
         {
             GameMemory.ListLoad(Program.Config.Banlist, "banlist", true, 103, 17, 22);
         }
         else
         {
             GameMemory.SetBytes(10193008, new byte[1]);
         }
         if (Program.Config.Whitelist.Enabled)
         {
             GameMemory.SetBytes(10192999, new byte[]
             {
                 3
             });
             GameMemory.ListLoad(Program.Config.Whitelist, "whitelist", false, 103, 29, 34);
             return;
         }
         GameMemory.SetBytes(10192999, new byte[]
         {
             4
         });
     }
 }
Esempio n. 6
0
        // 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.");
        }