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
ConsoleDriver.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x0200016E RID: 366
8 internal static class ConsoleDriver
9 {
10 // Token: 0x06000EB4 RID: 3764 RVA: 0x0001FAB4 File Offset: 0x0001DCB4
16
17 // Token: 0x06000EB5 RID: 3765 RVA: 0x0000207A File Offset: 0x0000027A
19 {
20 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
21 }
22
23 // Token: 0x06000EB6 RID: 3766 RVA: 0x0000207A File Offset: 0x0000027A
25 {
26 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28
29 // Token: 0x06000EB7 RID: 3767 RVA: 0x0000207A File Offset: 0x0000027A
30 private static IConsoleDriver CreateTermInfoDriver(string term)
31 {
32 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
33 }
34
35 // Token: 0x06000EB8 RID: 3768 RVA: 0x0001FAF8 File Offset: 0x0001DCF8
36 public static void Clear()
37 {
38 if (!true)
39 {
40 }
41 }
42
43 // Token: 0x06000EB9 RID: 3769 RVA: 0x0001FB0C File Offset: 0x0001DD0C
44 public static string ReadLine()
45 {
46 /*
47An exception occurred when decompiling this method (06000EB9)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.ConsoleDriver::ReadLine()
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 IL_0000:
54 brtrue(IL_0000, ldc.i4:bool(1))
55}
56
57 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
58 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
59 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
60 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
61 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
62 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
63 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
64 --- End of inner exception stack trace ---
65 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
66 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
67*/;
68 }
69
70 // Token: 0x06000EBA RID: 3770 RVA: 0x0001FB1C File Offset: 0x0001DD1C
71 public static ConsoleKeyInfo ReadKey(bool intercept)
72 {
73 /*
74An exception occurred when decompiling this method (06000EBA)
75
76ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ConsoleKeyInfo System.ConsoleDriver::ReadKey(System.Boolean)
77
78 ---> System.Exception: Basic block has to end with unconditional control flow.
79{
80 IL_0000:
81 brtrue(IL_0000, ldc.i4:bool(1))
82}
83
84 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
85 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
86 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
87 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
88 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
89 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
90 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
91 --- End of inner exception stack trace ---
92 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
93 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
94*/;
95 }
96
97 // Token: 0x17000155 RID: 341
98 // (get) Token: 0x06000EBB RID: 3771 RVA: 0x0001FB2C File Offset: 0x0001DD2C
99 public static bool IsConsole
100 {
101 get
102 {
103 /*
104An exception occurred when decompiling this method (06000EBB)
105
106ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ConsoleDriver::get_IsConsole()
107
108 ---> System.Exception: Basic block has to end with unconditional control flow.
109{
110 IL_0003:
111 stloc:native int(var_1_0A, callgetter:native int(MonoIO::get_ConsoleOutput))
112 stloc:native int(var_3_12, callgetter:native int(MonoIO::get_ConsoleInput))
113}
114
115 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
116 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
117 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
118 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
119 --- End of inner exception stack trace ---
120 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
121 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
122*/;
123 }
124 }
125
126 // Token: 0x06000EBC RID: 3772 RVA: 0x0000207A File Offset: 0x0000027A
127 private static bool Isatty(IntPtr handle)
128 {
129 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
130 }
131
132 // Token: 0x06000EBD RID: 3773 RVA: 0x0000207A File Offset: 0x0000027A
133 internal static int InternalKeyAvailable(int ms_timeout)
134 {
135 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
136 }
137
138 // Token: 0x06000EBE RID: 3774 RVA: 0x0000207A File Offset: 0x0000027A
139 internal unsafe static bool TtySetup(string keypadXmit, string teardown, [Out] byte[] control_characters, [Out] int* address)
140 {
141 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
142 }
143
144 // Token: 0x06000EBF RID: 3775 RVA: 0x0000207A File Offset: 0x0000027A
145 internal static bool SetEcho(bool wantEcho)
146 {
147 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
148 }
149
150 // Token: 0x04000656 RID: 1622
151 internal static IConsoleDriver driver;
152
153 // Token: 0x04000657 RID: 1623
154 private static bool is_console;
155
156 // Token: 0x04000658 RID: 1624
157 private static bool called_isatty;
158 }
159}
class f__AnonymousType0<< Count > j__TPar
static bool Isatty(IntPtr handle)
static unsafe bool TtySetup(string keypadXmit, string teardown, [Out] byte[] control_characters, [Out] int *address)
static IConsoleDriver CreateWindowsConsoleDriver()
static ConsoleKeyInfo ReadKey(bool intercept)
static IConsoleDriver driver
static bool called_isatty
static IConsoleDriver CreateTermInfoDriver(string term)
static bool SetEcho(bool wantEcho)
static int InternalKeyAvailable(int ms_timeout)
static IConsoleDriver CreateNullConsoleDriver()
static string ReadLine()
static void Clear()