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

◆ SaveSynchronisationOperation_SendFile() [1/2]

SaveSynchronisationOperation_SendFile.SaveSynchronisationOperation_SendFile ( string filenameToSend,
SaveSynchronisationOperation::SendDataFunction sendOperation )
inline

Definition at line 10 of file SaveSynchronisationOperation_SendFile.cs.

11 {
12 if (!true)
13 {
14 }
15 base..ctor();
17 bool flag = filenameToSend.Contains(".plr");
18 bool flag2 = filenameToSend.StartsWith("/OldSaves");
19 if ("/OldSaves" == null)
20 {
21 }
22 string savePath = Main.SavePath;
23 string text = filenameToSend.Replace(".plr", "");
24 string[] files = FileManager.GetFiles(savePath + text, "*.map");
26 if (files == null)
27 {
29 if ("/OldSaves/PersistentUserData.dat" == null)
30 {
31 }
32 string savePath2 = Main.SavePath;
33 string text2 = this.filename;
34 string text3 = savePath2 + text2;
35 long num = 0L;
36 byte[] array = FileUtilities.ReadAllBytes(text3, num != 0L);
38 return;
39 }
40 if ("/OldSaves" == null)
41 {
42 }
43 string savePath3 = Main.SavePath;
44 string text4;
45 if (text4 == null || text4 != null)
46 {
47 string[] array2 = this.mapFiles;
48 return;
49 }
51 }
class f__AnonymousType0<< Count > j__TPar
static string[] GetFiles(string path, string searchPattern)
static string SavePath
Definition Main.cs:4045
static byte[] ReadAllBytes(string path, bool cloud=false)

References System.array, filename, FileManager.GetFiles(), j__TPar, System.L, mapFiles, Terraria.Utilities.FileUtilities.ReadAllBytes(), Terraria.Main.SavePath, and System.text.