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
OldSaveSynchronise.cs
Go to the documentation of this file.
1using System;
3
4namespace Terraria.IO
5{
6 // Token: 0x02000570 RID: 1392
7 public class OldSaveSynchronise
8 {
9 // Token: 0x17000679 RID: 1657
10 // (get) Token: 0x060033D5 RID: 13269 RVA: 0x00200990 File Offset: 0x001FEB90
11 private static string OldSaveRoot
12 {
13 get
14 {
15 /*
16An exception occurred when decompiling this method (060033D5)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Terraria.IO.OldSaveSynchronise::get_OldSaveRoot()
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 Block_0:
23 stloc:RuntimePlatform(var_2_07, callgetter:RuntimePlatform(Application::get_platform))
24 stloc:RuntimePlatform(var_4_0F, callgetter:RuntimePlatform(Application::get_platform))
25}
26
27 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
28 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
29 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
30 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
31 --- End of inner exception stack trace ---
32 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
33 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
34*/;
35 }
36 }
37
38 // Token: 0x060033D6 RID: 13270 RVA: 0x002009B0 File Offset: 0x001FEBB0
39 public static void CopyOldSaves()
40 {
41 int num = 1;
42 if (num == 0)
43 {
44 }
45 string text = Main.SavePath + "/oldSavesExposed.dat";
46 bool flag = string.IsNullOrEmpty(OldSaveSynchronise.OldSaveRoot);
47 if (num == 0)
48 {
49 }
50 long num2 = 0L;
51 bool flag2 = FileUtilities.Exists(text, num2 != 0L);
52 }
53
54 // Token: 0x060033D7 RID: 13271 RVA: 0x00200C60 File Offset: 0x001FEE60
56 {
57 }
58
59 // Token: 0x04003E1A RID: 15898
60 private static string _oldSaveRoot;
61 }
62}
class f__AnonymousType0<< Count > j__TPar
static bool Exists(string path, bool cloud=false)