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
WorldFile_OldMobile.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5
6namespace Terraria.IO
7{
8 // Token: 0x02000577 RID: 1399
9 public class WorldFile_OldMobile
10 {
11 // Token: 0x060033F4 RID: 13300 RVA: 0x0020122C File Offset: 0x001FF42C
12 public bool LoadSaveData(byte[] srcData)
13 {
14 if (!true)
15 {
16 }
17 int num;
18 this.saveRelease = num;
19 long num2 = 0L;
20 int num3 = 3;
21 if (num2 == 0L)
22 {
23 long num4 = 0L;
24 long num5;
25 if (num3 == 0)
26 {
27 num5 = 0L;
28 }
29 if (num4 != 0L || num5 == 0L)
30 {
31 }
32 throw new OutOfMemoryException();
33 }
34 throw new OutOfMemoryException();
35 }
36
37 // Token: 0x060033F5 RID: 13301 RVA: 0x000021DB File Offset: 0x000003DB
39 {
40 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
41 }
42
43 // Token: 0x060033F6 RID: 13302 RVA: 0x00201284 File Offset: 0x001FF484
44 private static void DecryptWorldData(long offset, long encryptedSize)
45 {
46 int num = 1;
47 if (num == 0)
48 {
49 }
50 if (num == 0)
51 {
52 }
53 }
54
55 // Token: 0x060033F7 RID: 13303 RVA: 0x0020129C File Offset: 0x001FF49C
56 private void BadMarker(BinaryReader reader, string marker)
57 {
58 if (!true)
59 {
60 }
61 byte[] bytes = BitConverter.GetBytes(5678);
62 }
63
64 // Token: 0x060033F8 RID: 13304 RVA: 0x002012EC File Offset: 0x001FF4EC
65 private void loadWorldData(BinaryReader reader, int release)
66 {
67 this.worldTimestamp = reader;
69 Main.GameMode = 0;
72 if (reader == null)
73 {
74 }
75 }
76
77 // Token: 0x060033F9 RID: 13305 RVA: 0x00201394 File Offset: 0x001FF594
78 public static byte[] ReadAllBytes(Stream stream)
79 {
80 if (!false)
81 {
82 }
83 throw new OutOfMemoryException();
84 }
85
86 // Token: 0x060033FA RID: 13306 RVA: 0x002013C0 File Offset: 0x001FF5C0
87 public static WorldFileData GetAllMetadata(string file, bool cloudSave)
88 {
90 long num = 0L;
91 int num2 = 8;
92 if (num != 0L || num2 != 0)
93 {
94 throw new OutOfMemoryException();
95 }
96 if (!false)
97 {
98 }
99 if (false)
100 {
101 throw new OutOfMemoryException();
102 }
103 }
104
105 // Token: 0x060033FB RID: 13307 RVA: 0x000021DB File Offset: 0x000003DB
107 {
108 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
109 }
110
111 // Token: 0x060033FC RID: 13308 RVA: 0x00201434 File Offset: 0x001FF634
112 private static void loadWorldDataMeta(WorldFileData data, BinaryReader reader, int release)
113 {
114 }
115
116 // Token: 0x060033FD RID: 13309 RVA: 0x00201444 File Offset: 0x001FF644
118 {
119 }
120
121 // Token: 0x060033FE RID: 13310 RVA: 0x00201458 File Offset: 0x001FF658
122 // Note: this type is marked as 'beforefieldinit'.
124 {
125 }
126
127 // Token: 0x04003E3A RID: 15930
128 public const int VERSION_49 = 49;
129
130 // Token: 0x04003E3B RID: 15931
131 public const int VERSION_50 = 50;
132
133 // Token: 0x04003E3C RID: 15932
134 public const int VERSION_51 = 51;
135
136 // Token: 0x04003E3D RID: 15933
137 public const int VERSION_52 = 52;
138
139 // Token: 0x04003E3E RID: 15934
140 public const int VERSION_53 = 53;
141
142 // Token: 0x04003E3F RID: 15935
143 public const int VERSION_54 = 54;
144
145 // Token: 0x04003E40 RID: 15936
146 public const int VERSION_55 = 55;
147
148 // Token: 0x04003E41 RID: 15937
149 public const int VERSION_56 = 56;
150
151 // Token: 0x04003E42 RID: 15938
152 public const int VERSION_57 = 57;
153
154 // Token: 0x04003E43 RID: 15939
155 public const int VERSION_58 = 58;
156
157 // Token: 0x04003E44 RID: 15940
158 public const int VERSION_59 = 59;
159
160 // Token: 0x04003E45 RID: 15941
161 public const int VERSION_60 = 60;
162
163 // Token: 0x04003E46 RID: 15942
164 public const int VERSION_61 = 61;
165
166 // Token: 0x04003E47 RID: 15943
167 public const int VERSION_62 = 62;
168
169 // Token: 0x04003E48 RID: 15944
170 public const int VERSION_63 = 63;
171
172 // Token: 0x04003E49 RID: 15945
173 public const int VERSION_64 = 64;
174
175 // Token: 0x04003E4A RID: 15946
176 public const int VERSION_65 = 65;
177
178 // Token: 0x04003E4B RID: 15947
179 public const int VERSION_66 = 66;
180
181 // Token: 0x04003E4C RID: 15948
182 public const int VERSION_67 = 67;
183
184 // Token: 0x04003E4D RID: 15949
185 public const int VERSION_68 = 68;
186
187 // Token: 0x04003E4E RID: 15950
188 public const int VERSION_69 = 69;
189
190 // Token: 0x04003E4F RID: 15951
191 public const int VERSION_70 = 70;
192
193 // Token: 0x04003E50 RID: 15952
194 public const int VERSION_71 = 71;
195
196 // Token: 0x04003E51 RID: 15953
197 public const int VERSION_72 = 72;
198
199 // Token: 0x04003E52 RID: 15954
200 public const int VERSION_73 = 73;
201
202 // Token: 0x04003E53 RID: 15955
203 public const int VERSION_CURRENT = 73;
204
205 // Token: 0x04003E54 RID: 15956
206 public const int NEW_WORLD_DATA_VERSION = 73;
207
208 // Token: 0x04003E55 RID: 15957
209 private bool isCloudSave;
210
211 // Token: 0x04003E56 RID: 15958
212 private int worldID;
213
214 // Token: 0x04003E57 RID: 15959
215 private int worldTimestamp;
216
217 // Token: 0x04003E58 RID: 15960
218 private int hellLayer;
219
220 // Token: 0x04003E59 RID: 15961
222
223 // Token: 0x04003E5A RID: 15962
225
226 // Token: 0x04003E5B RID: 15963
228
229 // Token: 0x04003E5C RID: 15964
231
232 // Token: 0x04003E5D RID: 15965
234
235 // Token: 0x04003E5E RID: 15966
237
238 // Token: 0x04003E5F RID: 15967
240
241 // Token: 0x04003E60 RID: 15968
243
244 // Token: 0x04003E61 RID: 15969
246
247 // Token: 0x04003E62 RID: 15970
248 private static BlowFish worldDecrypter;
249
250 // Token: 0x04003E63 RID: 15971
251 private static byte[] inputData;
252
253 // Token: 0x04003E64 RID: 15972
254 private int saveRelease;
255
256 // Token: 0x04003E65 RID: 15973
257 private uint timestamp;
258
259 // Token: 0x04003E66 RID: 15974
261 }
262}
class f__AnonymousType0<< Count > j__TPar
static byte[] GetBytes(int value)
static WorldFileData GetAllMetadata(string file, bool cloudSave)
static void DecryptWorldData(long offset, long encryptedSize)
void BadMarker(BinaryReader reader, string marker)
static void loadWorldDataMeta(WorldFileData data, BinaryReader reader, int release)
static ChestInfo_OldMobile chestInfo
int loadWorldHeader(BinaryReader fileIO)
static TimeInfo_OldMobile tempTime
static TilInfo_OldMobile tileInfo
static RandomStyleInfo_OldMobile tree
static byte[] ReadAllBytes(Stream stream)
static FishingInfo_OldMobile fishingInfo
static SignInfo_OldMobile signInfo
static int loadWorldHeaderMeta(WorldFileData data, BinaryReader fileIO)
void loadWorldData(BinaryReader reader, int release)
static RandomStyleInfo_OldMobile caveBack
static int spawnTileY
Definition Main.cs:2365
static void clearWorld()
Definition WorldGen.cs:1452
static DateTime Now
Definition DateTime.cs:530
static Guid NewGuid()
Definition Guid.cs:15