terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
FileManager.cs
Go to the documentation of this file.
1using System;
2using System.IO;
6using Terraria;
8using UnityEngine;
9
10[global::Cpp2ILInjected.Token(Token = "0x2000070")]
11public class FileManager
12{
13 [global::Cpp2ILInjected.Token(Token = "0x600026E")]
14 [global::Cpp2ILInjected.Address(RVA = "0x70FA88", Offset = "0x70FA88", Length = "0xC8")]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LocalUser), Member = ".ctor", MemberParameters = new object[]
16 {
17 typeof(int),
19 }, ReturnType = typeof(void))]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DefaultFileAPI), Member = ".ctor", MemberParameters = new object[] { typeof(PlatformUser) }, ReturnType = typeof(void))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = ".ctor", MemberParameters = new object[]
24 {
27 typeof(bool),
29 }, ReturnType = typeof(void))]
30 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
32 {
33 throw null;
34 }
35
36 [global::Cpp2ILInjected.Token(Token = "0x600026F")]
37 [global::Cpp2ILInjected.Address(RVA = "0x70FB50", Offset = "0x70FB50", Length = "0xC0")]
38 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "get_SavePath", ReturnType = typeof(string))]
40 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "ResyncFiles", ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
43 public static void SynchroniseFiles()
44 {
45 throw null;
46 }
47
48 [global::Cpp2ILInjected.Token(Token = "0x6000270")]
49 [global::Cpp2ILInjected.Address(RVA = "0x70FC10", Offset = "0x70FC10", Length = "0xA8")]
50 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UserManagement), Member = "SwitchPrimaryUser", MemberParameters = new object[] { typeof(PlatformUser) }, ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UserManagement), Member = "UserSignedOut", MemberParameters = new object[] { typeof(PlatformUser) }, ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UserManagement), Member = "LocalUserQuit", MemberParameters = new object[] { typeof(LocalUser) }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "Shutdown", ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
57 public void Shutdown()
58 {
59 throw null;
60 }
61
62 [global::Cpp2ILInjected.Token(Token = "0x6000271")]
63 [global::Cpp2ILInjected.Address(RVA = "0x70FCB8", Offset = "0x70FCB8", Length = "0x13C")]
64 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "Exists", MemberParameters = new object[]
66 {
67 typeof(string),
68 typeof(bool)
69 }, ReturnType = typeof(bool))]
70 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "Copy", MemberParameters = new object[]
71 {
72 typeof(string),
73 typeof(string),
74 typeof(bool),
75 typeof(bool)
76 }, ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
78 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "GetFile", MemberParameters = new object[]
80 {
81 typeof(string),
82 typeof(bool)
83 }, ReturnType = typeof(CachedFile))]
84 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
85 public static bool Exists(string path)
86 {
87 throw null;
88 }
89
90 [global::Cpp2ILInjected.Token(Token = "0x6000272")]
91 [global::Cpp2ILInjected.Address(RVA = "0x70FDF4", Offset = "0x70FDF4", Length = "0x248")]
92 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "ErasePlayer", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "Delete", MemberParameters = new object[]
95 {
96 typeof(string),
97 typeof(bool)
98 }, ReturnType = typeof(void))]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "MoveToCloud", MemberParameters = new object[]
100 {
101 typeof(string),
102 typeof(string)
103 }, ReturnType = typeof(bool))]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "Delete", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
108 public static void Delete(string path)
109 {
110 throw null;
111 }
112
113 [global::Cpp2ILInjected.Token(Token = "0x6000273")]
114 [global::Cpp2ILInjected.Address(RVA = "0x71003C", Offset = "0x71003C", Length = "0x114")]
115 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
116 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "Write", MemberParameters = new object[]
118 {
119 typeof(string),
120 typeof(byte[]),
121 typeof(int),
122 typeof(bool)
123 }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
126 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
127 public static void CreateDirectory(string path)
128 {
129 throw null;
130 }
131
132 [global::Cpp2ILInjected.Token(Token = "0x6000274")]
133 [global::Cpp2ILInjected.Address(RVA = "0x710150", Offset = "0x710150", Length = "0x134")]
134 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
135 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "Copy", MemberParameters = new object[]
136 {
137 typeof(string),
138 typeof(string),
139 typeof(bool),
140 typeof(bool)
141 }, ReturnType = typeof(void))]
142 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "ReadAllText", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
143 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "ReadAllBytes", MemberParameters = new object[]
144 {
145 typeof(string),
146 typeof(bool)
147 }, ReturnType = typeof(byte[]))]
148 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "MoveToCloud", MemberParameters = new object[]
149 {
150 typeof(string),
151 typeof(string)
152 }, ReturnType = typeof(bool))]
153 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "GetFile", MemberParameters = new object[]
156 {
157 typeof(string),
158 typeof(bool)
159 }, ReturnType = typeof(CachedFile))]
160 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
161 public static byte[] ReadAllBytes(string path)
162 {
163 throw null;
164 }
165
166 [global::Cpp2ILInjected.Token(Token = "0x6000275")]
167 [global::Cpp2ILInjected.Address(RVA = "0x710284", Offset = "0x710284", Length = "0x13C")]
168 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
169 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SaveSynchronisationOperation_SendFile), Member = ".ctor", MemberParameters = new object[]
170 {
171 typeof(string),
173 }, ReturnType = typeof(void))]
174 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "ErasePlayer", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "GetFiles", MemberParameters = new object[]
176 {
177 typeof(string),
178 typeof(string)
179 }, ReturnType = typeof(string[]))]
180 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
181 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
182 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "GetFiles", MemberParameters = new object[]
183 {
184 typeof(string),
185 typeof(string)
186 }, ReturnType = typeof(string[]))]
187 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
188 public static string[] GetFiles(string path, string searchPattern)
189 {
190 throw null;
191 }
192
193 [global::Cpp2ILInjected.Token(Token = "0x6000276")]
194 [global::Cpp2ILInjected.Address(RVA = "0x7103C0", Offset = "0x7103C0", Length = "0x1BC")]
195 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
196 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "Write", MemberParameters = new object[]
197 {
198 typeof(string),
199 typeof(byte[]),
200 typeof(int),
201 typeof(bool)
202 }, ReturnType = typeof(void))]
203 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
205 {
206 typeof(string),
207 typeof(string)
208 }, ReturnType = typeof(string))]
209 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CacheFileManager), Member = "WriteFile", MemberParameters = new object[]
212 {
213 typeof(string),
214 typeof(byte[])
215 }, ReturnType = typeof(void))]
216 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
217 public static void WriteAllBytes(string path, byte[] fileData)
218 {
219 throw null;
220 }
221
222 [global::Cpp2ILInjected.Token(Token = "0x6000277")]
223 [global::Cpp2ILInjected.Address(RVA = "0x71057C", Offset = "0x71057C", Length = "0x10F4")]
224 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
225 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileUtilities), Member = "SetAttributes", MemberParameters = new object[]
226 {
227 typeof(string),
229 }, ReturnType = typeof(void))]
230 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
231 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
232 public static void SetAttributes(string path, FileAttributes fileAttributes)
233 {
234 throw null;
235 }
236
238 [global::Cpp2ILInjected.Token(Token = "0x4000220")]
239 public static FileManager Instance;
240
241 [global::Cpp2ILInjected.Token(Token = "0x4000221")]
242 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
243 public bool CacheFiles;
244
245 [global::Cpp2ILInjected.Token(Token = "0x4000222")]
246 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
248
249 [global::Cpp2ILInjected.Token(Token = "0x4000223")]
250 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
252
253 [global::Cpp2ILInjected.Token(Token = "0x4000224")]
254 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
256
257 [global::Cpp2ILInjected.Token(Token = "0x4000225")]
258 [global::Cpp2ILInjected.FieldOffset(Offset = "0x29")]
259 public bool IsWritingFiles;
260
261 [global::Cpp2ILInjected.Token(Token = "0x4000226")]
262 [global::Cpp2ILInjected.FieldOffset(Offset = "0x2C")]
264}
class f__AnonymousType0<< Count > j__TPar
SyncStatus
Definition SyncStatus.cs:6
static void CreateDirectory(string path)
static void SetAttributes(string path, FileAttributes fileAttributes)
FileManager(PlatformUser user, bool primaryUser)
static FileManager Instance
bool IsSyncingUserFiles
void Shutdown()
static void WriteAllBytes(string path, byte[] fileData)
static bool Exists(string path)
CacheFileManager FileCache
static void Delete(string path)
bool IsWritingFiles
static byte[] ReadAllBytes(string path)
FileAPI fileAPI
static void SynchroniseFiles()
static string[] GetFiles(string path, string searchPattern)
SyncStatus syncStatus
delegate void SendDataFunction(byte[] messageData, int length)