Definition at line 48913 of file Main.cs.
48914 {
48917 {
48918 text = ((IntPtr.Size != 8) ? (
text +
" -x86") : (
text +
" -x64"));
48919 }
48924 {
48925 tServer.StartInfo.FileName = "TerrariaServer";
48926 }
48928 {
48929 tServer.StartInfo.FileName = "../MacOS/TerrariaServer";
48930 }
48931 else
48932 {
48933 tServer.StartInfo.FileName = "TerrariaServer.exe";
48934 }
48935 tServer.StartInfo.Arguments =
text;
48937 {
48939 startInfo.Arguments = startInfo.Arguments +
" -loadlib " +
libPath;
48940 }
48941 tServer.StartInfo.UseShellExecute = false;
48942 tServer.StartInfo.CreateNoWindow = true;
48944 {
48946 }
48947 else
48948 {
48950 }
48951 Netplay.SetRemoteIP("127.0.0.1");
48954 Netplay.StartTcpClient();
48956 }
static GameCulture ActiveCulture
static WorldFileData ActiveWorldFileData
static string worldPathName
string SanitizePathArgument(string argumentName, string argumentPath)
static int WorldRollingBackupsCountToKeep
static string ConvertToSafeArgument(string arg)
static ServerMode MenuServerMode
static Terraria.Social.Base.NetSocialModule Network
References Terraria.Localization.Language.ActiveCulture, Terraria.Main.ActiveWorldFileData, Terraria.Main.autoPass, Terraria.Main.ConvertToSafeArgument(), ReLogic.OS.Platform.IsLinux, ReLogic.OS.Platform.IsOSX, Terraria.Main.libPath, Terraria.Lang.menu, Terraria.Main.menuMode, Terraria.Main.MenuServerMode, Terraria.Social.SocialAPI.Network, System.Process, Terraria.Main.SanitizePathArgument(), Terraria.Netplay.ServerPassword, Terraria.Netplay.SetRemoteIP(), Terraria.Netplay.StartTcpClient(), Terraria.Main.statusText, System.text, Terraria.Main.tServer, Terraria.Main.worldPathName, and Terraria.Main.WorldRollingBackupsCountToKeep.
Referenced by Terraria.Main.DrawMenu(), and Terraria.Main.OnSubmitServerPassword().