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_ReceiveFile.cs
Go to the documentation of this file.
1using System;
2using Terraria;
4using UnityEngine;
5
6// Token: 0x020002CC RID: 716
8{
9 // Token: 0x0600108B RID: 4235 RVA: 0x00050D28 File Offset: 0x0004EF28
18
19 // Token: 0x0600108C RID: 4236 RVA: 0x00050D48 File Offset: 0x0004EF48
20 public override void Begin()
21 {
22 }
23
24 // Token: 0x0600108D RID: 4237 RVA: 0x00050D58 File Offset: 0x0004EF58
26 {
27 bool flag = this.filename.Contains(".plr");
28 string text = this.filename;
29 string text2 = this.filename;
30 Debug.Log("Setting active player " + text2);
31 long num = 0L;
32 int num2 = 6;
33 if (num == 0L)
34 {
35 if (num2 == 0)
36 {
37 bool flag2 = this.filename.Contains(".wld");
38 string text3 = this.filename;
39 string text4 = this.filename;
40 Debug.Log("Setting active world " + text4);
41 if (false)
42 {
43 throw new OutOfMemoryException();
44 }
45 }
46 int num3;
47 if (num3 != 0)
48 {
49 }
50 return;
51 }
52 throw new OutOfMemoryException();
53 }
54
55 // Token: 0x0600108E RID: 4238 RVA: 0x00050E74 File Offset: 0x0004F074
56 private void WriteFile()
57 {
58 if (!true)
59 {
60 }
61 string savePath = Main.SavePath;
62 string text = this.filename;
63 string text2 = savePath + text;
64 long num = 0L;
65 byte[] array = FileUtilities.ReadAllBytes(text2, num != 0L);
66 byte[] array2 = this.fileData;
67 Debug.LogError("Error in transfer");
68 byte[] array3 = this.fileData;
69 Debug.LogError("Error in transfer");
70 }
71
72 // Token: 0x0600108F RID: 4239 RVA: 0x00050ED8 File Offset: 0x0004F0D8
73 public override string GetStatus()
74 {
75 int num = this.fileOffset;
76 int num2 = this.fileLength;
77 string text;
78 return text;
79 }
80
81 // Token: 0x04001F6D RID: 8045
82 private string filename;
83
84 // Token: 0x04001F6E RID: 8046
85 private int fileOffset;
86
87 // Token: 0x04001F6F RID: 8047
88 private int fileLength;
89
90 // Token: 0x04001F70 RID: 8048
91 private byte[] fileData;
92}
class f__AnonymousType0<< Count > j__TPar
override void ProcessMessage(SaveSynchronisationOperation.MessageId messageId, byte[] data)
SaveSynchronisationOperation_ReceiveFile(SaveSynchronisationOperation.SendDataFunction sendOperation)
static string SavePath
Definition Main.cs:4045
static byte[] ReadAllBytes(string path, bool cloud=false)
static void Log(object message)
Definition Debug.cs:51
static void LogError(object message)
Definition Debug.cs:62