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
MPSessionManager.cs
Go to the documentation of this file.
1using System;
3using Terraria;
4
5// Token: 0x020002B4 RID: 692
6public class MPSessionManager
7{
8 // Token: 0x0600100A RID: 4106 RVA: 0x000021DB File Offset: 0x000003DB
9 public static MPSessionManager Create()
10 {
11 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
12 }
13
14 // Token: 0x0600100B RID: 4107 RVA: 0x0004F1D8 File Offset: 0x0004D3D8
16 {
17 }
18
19 // Token: 0x0600100C RID: 4108 RVA: 0x0004F1EC File Offset: 0x0004D3EC
24
25 // Token: 0x0600100D RID: 4109 RVA: 0x0004F200 File Offset: 0x0004D400
27 {
28 /*
29An exception occurred when decompiling this method (0600100D)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling MPSession[] MPSessionManager::FindUserSessions(PlatformUser[])
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:MPSessionAPI(var_0_06, ldfld:MPSessionAPI(MPSessionManager::platformAPI, ldloc:MPSessionManager(this)))
37}
38
39 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
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48
49 // Token: 0x0600100E RID: 4110 RVA: 0x0004F214 File Offset: 0x0004D414
51 {
52 /*
53An exception occurred when decompiling this method (0600100E)
54
55ICSharpCode.Decompiler.DecompilerException: Error decompiling MPSession MPSessionManager::CreateNewSession(PlatformUser,MPSessionManager/LobbyState)
56
57 ---> System.Exception: Basic block has to end with unconditional control flow.
58{
59 Block_0:
60 stloc:MPSessionAPI(var_0_06, ldfld:MPSessionAPI(MPSessionManager::platformAPI, ldloc:MPSessionManager(this)))
61}
62
63 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
64 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
65 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
66 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
67 --- End of inner exception stack trace ---
68 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
69 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
70*/;
71 }
72
73 // Token: 0x0600100F RID: 4111 RVA: 0x0004F228 File Offset: 0x0004D428
74 public MPSession CreateNewDirectSession(PlatformUser hostUser, MPSessionManager.LobbyState state, string serverAddress, int serverPort)
75 {
76 /*
77An exception occurred when decompiling this method (0600100F)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling MPSession MPSessionManager::CreateNewDirectSession(PlatformUser,MPSessionManager/LobbyState,System.String,System.Int32)
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 Block_0:
84 stloc:MPSessionAPI(var_0_06, ldfld:MPSessionAPI(MPSessionManager::platformAPI, ldloc:MPSessionManager(this)))
85}
86
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 1852
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: 0x06001010 RID: 4112 RVA: 0x0004F23C File Offset: 0x0004D43C
102
103 // Token: 0x06001011 RID: 4113 RVA: 0x0004F250 File Offset: 0x0004D450
105 {
106 }
107
108 // Token: 0x06001012 RID: 4114 RVA: 0x0004F260 File Offset: 0x0004D460
109 public void UpdateUI()
110 {
111 bool gameMenu = Main.gameMenu;
114 if (pendingSession != null)
115 {
117 if (pendingSession == null)
118 {
119 }
120 int menuMode = Main.menuMode;
121 if (pendingSession == null)
122 {
123 }
124 int menuMode2 = Main.menuMode;
125 if (pendingSession == null)
126 {
127 }
128 int menuMode3 = Main.menuMode;
129 return;
130 }
132 if (mpsession != null)
133 {
134 }
135 }
136
137 // Token: 0x06001013 RID: 4115 RVA: 0x0004F300 File Offset: 0x0004D500
138 public void PlayerSelected()
139 {
140 if (this.sessionJoining != null)
141 {
143 return;
144 }
146 }
147
148 // Token: 0x06001014 RID: 4116 RVA: 0x0004F350 File Offset: 0x0004D550
149 public void CancelPending()
150 {
151 if (this.sessionJoining != null && this.PendingSession != null)
152 {
154 return;
155 }
156 }
157
158 // Token: 0x06001015 RID: 4117 RVA: 0x0004F374 File Offset: 0x0004D574
159 public void OpenInviteOverlay()
160 {
161 if (this.CurrentSession != null)
162 {
166 return;
167 }
168 }
169
170 // Token: 0x04001D89 RID: 7561
172
173 // Token: 0x04001D8A RID: 7562
175
176 // Token: 0x04001D8B RID: 7563
178
179 // Token: 0x04001D8C RID: 7564
181
182 // Token: 0x04001D8D RID: 7565
184
185 // Token: 0x020002B5 RID: 693
186 public enum LobbyState
187 {
188 // Token: 0x04001D8F RID: 7567
189 None,
190 // Token: 0x04001D90 RID: 7568
191 MenuLobby,
192 // Token: 0x04001D91 RID: 7569
194 // Token: 0x04001D92 RID: 7570
196 }
197}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
void SessionInviteJoined(MPSession newSession)
static MPSessionManager Instance
static MPSessionManager Create()
MPSession[] FindUserSessions(PlatformUser[] users)
MPSession CreateNewDirectSession(PlatformUser hostUser, MPSessionManager.LobbyState state, string serverAddress, int serverPort)
MPSessionAPI platformAPI
MPSession CreateNewSession(PlatformUser hostUser, MPSessionManager.LobbyState state)
void SetPendingSession(MPSession session)
void CheckShutdownSwitchMPMenus()
static int menuMode
Definition Main.cs:3357
static bool gameMenu
Definition Main.cs:2673
static PlatformUser CurrentUser