TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ OpenRecent()

void Terraria.Main.OpenRecent ( )
inlineprotected

Definition at line 3929 of file Main.cs.

3930 {
3931 try
3932 {
3933 if (!File.Exists(SavePath + Path.DirectorySeparatorChar + "servers.dat"))
3934 {
3935 return;
3936 }
3937 using FileStream input = new FileStream(SavePath + Path.DirectorySeparatorChar + "servers.dat", FileMode.Open);
3938 using BinaryReader binaryReader = new BinaryReader(input);
3939 binaryReader.ReadInt32();
3940 for (int i = 0; i < 10; i++)
3941 {
3942 recentWorld[i] = binaryReader.ReadString();
3943 recentIP[i] = binaryReader.ReadString();
3944 recentPort[i] = binaryReader.ReadInt32();
3945 }
3946 }
3947 catch
3948 {
3949 }
3950 }
static int[] recentPort
Definition Main.cs:867
static string SavePath
Definition Main.cs:2841
static string[] recentIP
Definition Main.cs:865
static string[] recentWorld
Definition Main.cs:863

References Terraria.Main.recentIP, Terraria.Main.recentPort, Terraria.Main.recentWorld, and Terraria.Main.SavePath.

Referenced by Terraria.Main.ClientInitialize().

+ Here is the caller graph for this function: