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
ConsoleOutputMirror.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3using System.Text;
4
5namespace ReLogic.IO
6{
7 // Token: 0x02000B34 RID: 2868
9 {
10 // Token: 0x060053A8 RID: 21416 RVA: 0x00284C10 File Offset: 0x00282E10
11 public static void ToFile(string path)
12 {
13 }
14
15 // Token: 0x060053A9 RID: 21417 RVA: 0x00284C20 File Offset: 0x00282E20
16 private ConsoleOutputMirror(string path)
17 {
18 if (!true)
19 {
20 }
21 if (!true)
22 {
23 }
25 DirectoryInfo parent = Directory.GetParent(path);
29 }
30
31 // Token: 0x060053AA RID: 21418 RVA: 0x00284C5C File Offset: 0x00282E5C
32 protected virtual void Dispose(bool disposing)
33 {
34 if (!this._disposedValue)
35 {
37 if (this._fileWriter != null)
38 {
40 }
41 if (this._fileStream != null)
42 {
43 }
45 }
46 }
47
48 // Token: 0x060053AB RID: 21419 RVA: 0x00284C9C File Offset: 0x00282E9C
49 public void Dispose()
50 {
51 }
52
53 // Token: 0x04008CE0 RID: 36064
55
56 // Token: 0x04008CE1 RID: 36065
58
59 // Token: 0x04008CE2 RID: 36066
61
62 // Token: 0x04008CE3 RID: 36067
64
65 // Token: 0x04008CE4 RID: 36068
67
68 // Token: 0x04008CE5 RID: 36069
69 private bool _disposedValue;
70
71 // Token: 0x02000B35 RID: 2869
72 private class DoubleWriter : TextWriter
73 {
74 // Token: 0x060053AC RID: 21420 RVA: 0x00284CAC File Offset: 0x00282EAC
76 {
77 if (!true)
78 {
79 }
80 base..ctor();
82 this._second = second;
83 }
84
85 // Token: 0x1700090E RID: 2318
86 // (get) Token: 0x060053AD RID: 21421 RVA: 0x00284CD0 File Offset: 0x00282ED0
87 public override Encoding Encoding
88 {
89 get
90 {
91 /*
92An exception occurred when decompiling this method (060053AD)
93
94ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.Encoding ReLogic.IO.ConsoleOutputMirror/DoubleWriter::get_Encoding()
95
96 ---> System.Exception: Basic block has to end with unconditional control flow.
97{
98 Block_0:
99 stloc:TextWriter(var_0_06, ldfld:TextWriter(DoubleWriter::_first, ldloc:DoubleWriter(this)))
100}
101
102 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
103 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
104 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
105 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
106 --- End of inner exception stack trace ---
107 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
108 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
109*/;
110 }
111 }
112
113 // Token: 0x060053AE RID: 21422 RVA: 0x00284CE4 File Offset: 0x00282EE4
114 public override void Flush()
115 {
116 TextWriter first = this._first;
117 TextWriter second = this._second;
118 }
119
120 // Token: 0x060053AF RID: 21423 RVA: 0x00284D00 File Offset: 0x00282F00
121 public override void Write(char value)
122 {
123 TextWriter first = this._first;
124 TextWriter second = this._second;
125 }
126
127 // Token: 0x04008CE6 RID: 36070
129
130 // Token: 0x04008CE7 RID: 36071
132 }
133 }
134}
class f__AnonymousType0<< Count > j__TPar
DoubleWriter(TextWriter first, TextWriter second)
static void ToFile(string path)
virtual void Dispose(bool disposing)
static ConsoleOutputMirror _instance
static void SetOut(TextWriter newOut)
Definition Console.cs:109
static DirectoryInfo GetParent(string path)
Definition Directory.cs:10
static FileStream Create(string path)
Definition File.cs:64