示例#1
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
         });
     }
 }