terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ LoadDedConfig()

void Terraria.Main.LoadDedConfig ( string configPath)
inline

Definition at line 6391 of file Main.cs.

6392 {
6393 if (!true)
6394 {
6395 }
6396 long num = 0L;
6397 bool flag = FileUtilities.Exists(configPath, num != 0L);
6398 string text;
6399 bool flag2 = text.ToLower() == "world=";
6400 string text2;
6401 bool flag3 = text2.ToLower() == "port=";
6402 if ("port=" == null)
6403 {
6404 }
6405 string text3;
6406 int num2 = Convert.ToInt32(text3);
6407 if ("port=" == null)
6408 {
6409 }
6410 string text4;
6411 bool flag4 = text4.ToLower() == "worldrollbackstokeep=";
6412 if ("worldrollbackstokeep=" == null)
6413 {
6414 }
6415 string text5;
6416 int num3 = Convert.ToInt32(text5);
6417 if ("worldrollbackstokeep=" == null)
6418 {
6419 }
6420 string text6;
6421 bool flag5 = text6.ToLower() == "maxplayers=";
6422 if ("maxplayers=" == null)
6423 {
6424 }
6425 string text7;
6426 int num4 = Convert.ToInt32(text7);
6427 string text8;
6428 bool flag6 = text8.ToLower() == "priority=";
6429 string text9;
6430 int num5 = Convert.ToInt32(text9);
6431 string text10;
6432 bool flag7 = text10.ToLower() == "password=";
6433 if ("password=" == null)
6434 {
6435 }
6436 string text12;
6437 string text11 = Main.ConvertFromSafeArgument(text12);
6438 if ("password=" == null)
6439 {
6440 }
6441 string text13;
6442 bool flag8 = text13.ToLower() == "motd=";
6443 if ("motd=" == null)
6444 {
6445 }
6446 string text14;
6447 bool flag9 = text14.ToLower() == "lang=";
6448 string text15;
6449 int num6 = Convert.ToInt32(text15);
6450 string text16;
6451 bool flag10 = text16.ToLower() == "language=";
6452 string text17;
6453 bool flag11 = text17.ToLower() == "seed=";
6454 if ("seed=" == null)
6455 {
6456 }
6457 string text18;
6458 bool flag12 = text18.ToLower() == "banlist=";
6459 string text19;
6460 bool flag13 = text19.ToLower() == "secure=";
6461 string text20;
6462 bool flag14 = text20 == "1";
6463 if ("secure=" == null)
6464 {
6465 }
6466 string text21;
6467 bool flag15 = text21.ToLower() == "upnp=";
6468 string text22;
6469 bool flag16 = text22 != "1";
6470 if ("upnp=" == null)
6471 {
6472 }
6473 string text23;
6474 bool flag17 = text23.ToLower() == "slowliquids=";
6475 string text24;
6476 bool flag18 = text24 == "1";
6477 if ("upnp=" == null)
6478 {
6479 }
6480 string text25;
6481 bool flag19 = text25.ToLower() == "npcstream=";
6482 if ("npcstream=" == null)
6483 {
6484 }
6485 string text26;
6486 int num7 = Convert.ToInt32(text26);
6487 if ("npcstream=" == null)
6488 {
6489 }
6490 }
class f__AnonymousType0<< Count > j__TPar
static int ToInt32(object value)
Definition Convert.cs:1412
static bool Exists(string path, bool cloud=false)

References Terraria.Main.ConvertFromSafeArgument(), Terraria.Utilities.FileUtilities.Exists(), j__TPar, Microsoft.Xna.Framework.Input.L, System.text, and System.Convert.ToInt32().