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
DefaultFileAPI.cs
Go to the documentation of this file.
1using System;
2using System.IO;
5using Terraria;
6using UnityEngine;
7
8[global::Cpp2ILInjected.Token(Token = "0x200006C")]
9public class DefaultFileAPI : FileAPI
10{
11 [global::Cpp2ILInjected.Token(Token = "0x600024D")]
12 [global::Cpp2ILInjected.Address(RVA = "0x70EFDC", Offset = "0x70EFDC", Length = "0x90")]
13 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileManager), Member = ".ctor", MemberParameters = new object[]
14 {
16 typeof(bool)
17 }, ReturnType = typeof(void))]
18 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "Log", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
23 {
24 throw null;
25 }
26
27 [global::Cpp2ILInjected.Token(Token = "0x600024E")]
28 [global::Cpp2ILInjected.Address(RVA = "0x70F06C", Offset = "0x70F06C", Length = "0x4")]
29 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
30 public void Shutdown()
31 {
32 throw null;
33 }
34
35 [global::Cpp2ILInjected.Token(Token = "0x600024F")]
36 [global::Cpp2ILInjected.Address(RVA = "0x70F070", Offset = "0x70F070", Length = "0x280")]
37 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
38 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Application), Member = "get_persistentDataPath", ReturnType = typeof(string))]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "Log", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AndroidJavaClass), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AndroidJavaObject[]), Member = "GetStatic", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[] { typeof(string) }, ReturnType = "FieldType")]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AndroidJavaObject[]), Member = "Call", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
44 {
45 typeof(string),
46 typeof(object[])
47 }, ReturnType = "ReturnType")]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "LastIndexOf", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(int))]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Substring", MemberParameters = new object[]
50 {
51 typeof(int),
52 typeof(int)
53 }, ReturnType = typeof(string))]
54 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 19)]
55 public string GetUserSavePath()
56 {
57 throw null;
58 }
59
60 [global::Cpp2ILInjected.Token(Token = "0x6000250")]
61 [global::Cpp2ILInjected.Address(RVA = "0x70F2F0", Offset = "0x70F2F0", Length = "0x4")]
62 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
63 public void LegacySync()
64 {
65 throw null;
66 }
67
68 [global::Cpp2ILInjected.Token(Token = "0x6000251")]
69 [global::Cpp2ILInjected.Address(RVA = "0x70F2F4", Offset = "0x70F2F4", Length = "0x6C")]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IsNullOrEmpty", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SavePath", ReturnType = typeof(string))]
73 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
74 public void Mount(bool forSync)
75 {
76 throw null;
77 }
78
79 [global::Cpp2ILInjected.Token(Token = "0x6000252")]
80 [global::Cpp2ILInjected.Address(RVA = "0x70F360", Offset = "0x70F360", Length = "0x4")]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
82 public void Unmount(bool forSync)
83 {
84 throw null;
85 }
86
87 [global::Cpp2ILInjected.Token(Token = "0x6000253")]
88 [global::Cpp2ILInjected.Address(RVA = "0x70F364", Offset = "0x70F364", Length = "0xC")]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(DirectoryInfo))]
91 public void CreateDirectory(string directory)
92 {
93 throw null;
94 }
95
96 [global::Cpp2ILInjected.Token(Token = "0x6000254")]
97 [global::Cpp2ILInjected.Address(RVA = "0x70F370", Offset = "0x70F370", Length = "0x90")]
98 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Path), Member = "GetDirectoryName", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(DirectoryInfo))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "WriteAllBytes", MemberParameters = new object[]
103 {
104 typeof(string),
105 typeof(byte[])
106 }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
108 public void WriteFile(string filename, byte[] fileData)
109 {
110 throw null;
111 }
112
113 [global::Cpp2ILInjected.Token(Token = "0x6000255")]
114 [global::Cpp2ILInjected.Address(RVA = "0x70F400", Offset = "0x70F400", Length = "0xC")]
115 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "Delete", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
117 public void Delete(string filename)
118 {
119 throw null;
120 }
121
122 [global::Cpp2ILInjected.Token(Token = "0x6000256")]
123 [global::Cpp2ILInjected.Address(RVA = "0x70F40C", Offset = "0x70F40C", Length = "0xC")]
124 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "ReadAllBytes", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(byte[]))]
126 public byte[] ReadFile(string filename)
127 {
128 throw null;
129 }
130
131 [global::Cpp2ILInjected.Token(Token = "0x6000257")]
132 [global::Cpp2ILInjected.Address(RVA = "0x70F418", Offset = "0x70F418", Length = "0x74")]
133 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "GetFiles", MemberParameters = new object[]
136 {
137 typeof(string),
138 typeof(string)
139 }, ReturnType = typeof(string[]))]
140 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
141 public string[] GetFiles(string path, string searchPattern)
142 {
143 throw null;
144 }
145
146 [global::Cpp2ILInjected.Token(Token = "0x6000258")]
147 [global::Cpp2ILInjected.Address(RVA = "0x70F48C", Offset = "0x70F48C", Length = "0x6C")]
148 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Directory), Member = "GetDirectories", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string[]))]
151 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
152 public string[] GetFolders(string path)
153 {
154 throw null;
155 }
156
157 [global::Cpp2ILInjected.Token(Token = "0x6000259")]
158 [global::Cpp2ILInjected.Address(RVA = "0x70F4F8", Offset = "0x70F4F8", Length = "0xC")]
159 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
160 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
161 public bool Exists(string filename)
162 {
163 throw null;
164 }
165
166 [global::Cpp2ILInjected.Token(Token = "0x600025A")]
167 [global::Cpp2ILInjected.Address(RVA = "0x70F504", Offset = "0x70F504", Length = "0x10")]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "SetAttributes", MemberParameters = new object[]
170 {
171 typeof(string),
173 }, ReturnType = typeof(void))]
174 public void SetAttributes(string filename, FileAttributes fileAttributes)
175 {
176 throw null;
177 }
178
179 [global::Cpp2ILInjected.Token(Token = "0x4000217")]
180 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
181 private int mountCount;
182
183 [global::Cpp2ILInjected.Token(Token = "0x4000218")]
184 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
185 private string _userSavePath;
186
187 [global::Cpp2ILInjected.Token(Token = "0x4000219")]
188 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
190}
class f__AnonymousType0<< Count > j__TPar
byte[] ReadFile(string filename)
void SetAttributes(string filename, FileAttributes fileAttributes)
void Mount(bool forSync)
void WriteFile(string filename, byte[] fileData)
void CreateDirectory(string directory)
string[] GetFiles(string path, string searchPattern)
bool Exists(string filename)
string[] GetFolders(string path)
void Delete(string filename)
void Unmount(bool forSync)
PlatformUser platformUser
string GetUserSavePath()
DefaultFileAPI(PlatformUser user)