4561 {
4563 {
4564 return;
4565 }
4569 {
4570 try
4571 {
4572 if (
text.Length > 6 &&
text.Substring(0, 6).ToLower() ==
"world=")
4573 {
4575 try
4576 {
4581 }
4582 catch
4583 {
4584 }
4585 }
4586 if (
text.Length > 5 &&
text.Substring(0, 5).ToLower() ==
"port=")
4587 {
4589 try
4590 {
4592 }
4593 catch
4594 {
4595 }
4596 }
4597 if (
text.Length > 21 &&
text.Substring(0, 21).ToLower() ==
"worldrollbackstokeep=")
4598 {
4600 try
4601 {
4603 }
4604 catch
4605 {
4606 }
4607 }
4608 if (
text.Length > 11 &&
text.Substring(0, 11).ToLower() ==
"maxplayers=")
4609 {
4611 try
4612 {
4615 {
4617 }
4618 }
4619 catch
4620 {
4621 }
4622 }
4623 if (
text.Length > 11 &&
text.Substring(0, 9).ToLower() ==
"priority=" && !Program.LaunchParameters.ContainsKey(
"-forcepriority"))
4624 {
4626 try
4627 {
4630 {
4633 {
4634 case 0:
4636 break;
4637 case 1:
4639 break;
4640 case 2:
4642 break;
4643 case 3:
4645 break;
4646 case 4:
4648 break;
4649 case 5:
4651 break;
4652 }
4653 }
4654 }
4655 catch
4656 {
4657 }
4658 }
4659 if (
text.Length > 9 &&
text.Substring(0, 9).ToLower() ==
"password=")
4660 {
4662 }
4663 if (
text.Length > 5 &&
text.Substring(0, 5).ToLower() ==
"motd=")
4664 {
4666 }
4667 if (
text.Length > 5 &&
text.Substring(0, 5).ToLower() ==
"lang=")
4668 {
4671 }
4672 if (
text.Length > 5 &&
text.Substring(0, 5).ToLower() ==
"language=")
4673 {
4676 }
4677 if (
text.Length >= 10 &&
text.Substring(0, 10).ToLower() ==
"worldpath=")
4678 {
4681 }
4682 if (
text.Length >= 10 &&
text.Substring(0, 10).ToLower() ==
"worldname=")
4683 {
4685 }
4686 if (
text.Length >= 5 &&
text.Substring(0, 5).ToLower() ==
"seed=")
4687 {
4689 }
4690 if (
text.Length > 8 &&
text.Substring(0, 8).ToLower() ==
"banlist=")
4691 {
4694 }
4695 if (
text.Length > 11 &&
text.Substring(0, 11).ToLower() ==
"difficulty=")
4696 {
4697 switch (
text.Substring(11))
4698 {
4699 case "0":
4701 break;
4702 case "1":
4704 break;
4705 case "2":
4707 break;
4708 case "3":
4710 break;
4711 }
4712 }
4713 if (
text.Length > 11 &&
text.Substring(0, 11).ToLower() ==
"autocreate=")
4714 {
4717 }
4718 if (
text.Length > 7 &&
text.Substring(0, 7).ToLower() ==
"secure=" &&
text.Substring(7) ==
"1")
4719 {
4720 Netplay.SpamCheck = true;
4721 }
4722 if (
text.Length > 5 &&
text.Substring(0, 5).ToLower() ==
"upnp=" &&
text.Substring(5) !=
"1")
4723 {
4724 Netplay.UseUPNP = false;
4725 }
4726 string text6 =
"slowliquids=";
4728 {
4730 }
4731 if (
text.Length > 10 &&
text.Substring(0, 10).ToLower() ==
"npcstream=")
4732 {
4734 try
4735 {
4737 }
4738 catch
4739 {
4740 }
4741 }
4743 }
4744 catch
4745 {
4746 }
4747 }
4748 }
static int ToInt32(object? value)
static Process GetCurrentProcess()
static bool Exists([NotNullWhen(true)] string? path)
static void TryListingPermissionsFrom(string line)
static WorldFileData GetAllMetadata(string file, bool cloudSave)
static LanguageManager Instance
static int npcStreamSpeed
static WorldFileData ActiveWorldFileData
static bool Setting_UseReducedMaxLiquids
void autoCreate(string worldSize)
void SetNetPlayers(int mPlayers)
static int WorldRollingBackupsCountToKeep
static string AutogenSeedName
static string ConvertFromSafeArgument(string arg)
static string autoGenFileLocation