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
Android_UserManager.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4// Token: 0x02000025 RID: 37
5public static class Android_UserManager
6{
7 // Token: 0x1700002F RID: 47
8 // (get) Token: 0x060000B1 RID: 177 RVA: 0x000036EC File Offset: 0x000018EC
10 {
11 get
12 {
13 if (!true)
14 {
15 }
16 return DrPlatform.Android.User.LoginState.FromCache;
17 }
18 }
19
20 // Token: 0x17000030 RID: 48
21 // (get) Token: 0x060000B2 RID: 178 RVA: 0x00003704 File Offset: 0x00001904
22 public static bool AttemptingSignIn
23 {
24 get
25 {
26 if (!true)
27 {
28 }
29 return true;
30 }
31 }
32
33 // Token: 0x17000031 RID: 49
34 // (get) Token: 0x060000B3 RID: 179 RVA: 0x00003718 File Offset: 0x00001918
35 public static string UserId
36 {
37 get
38 {
39 /*
40An exception occurred when decompiling this method (060000B3)
41
42ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Android_UserManager::get_UserId()
43
44 ---> System.Exception: Basic block has to end with unconditional control flow.
45{
46 IL_0000:
47 brtrue(IL_0000, ldc.i4:bool(1))
48}
49
50 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
51 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
52 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
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62 }
63
64 // Token: 0x17000032 RID: 50
65 // (get) Token: 0x060000B4 RID: 180 RVA: 0x00003728 File Offset: 0x00001928
66 public static string GamerTag
67 {
68 get
69 {
70 /*
71An exception occurred when decompiling this method (060000B4)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Android_UserManager::get_GamerTag()
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 IL_0000:
78 brtrue(IL_0000, ldc.i4:bool(1))
79}
80
81 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
82 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
83 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
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 1846
85 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
86 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
87 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
88 --- End of inner exception stack trace ---
89 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
90 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
91*/;
92 }
93 }
94
95 // Token: 0x17000033 RID: 51
96 // (get) Token: 0x060000B5 RID: 181 RVA: 0x00003738 File Offset: 0x00001938
97 public static string AccountProfileURL
98 {
99 get
100 {
101 /*
102An exception occurred when decompiling this method (060000B5)
103
104ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Android_UserManager::get_AccountProfileURL()
105
106 ---> System.Exception: Basic block has to end with unconditional control flow.
107{
108 IL_0000:
109 brtrue(IL_0000, ldc.i4:bool(1))
110}
111
112 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
113 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
114 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
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 1846
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: 0x060000B6 RID: 182 RVA: 0x00003748 File Offset: 0x00001948
127 public static void RequestLogin()
128 {
129 if (!true)
130 {
131 }
132 }
133
134 // Token: 0x060000B7 RID: 183 RVA: 0x00003758 File Offset: 0x00001958
135 public static void Logout()
136 {
137 if (!true)
138 {
139 }
141 }
142
143 // Token: 0x060000B8 RID: 184 RVA: 0x00003770 File Offset: 0x00001970
144 public static void ClearCache()
145 {
147 }
148
149 // Token: 0x060000B9 RID: 185 RVA: 0x00003784 File Offset: 0x00001984
150 public static void Update()
151 {
152 if (true)
153 {
154 Debug.Log("Attempting player sign in");
156 bool isEditor = Application.isEditor;
162 return;
163 }
164 }
165
166 // Token: 0x060000BA RID: 186 RVA: 0x000037FC File Offset: 0x000019FC
167 private static void AttemptSignIn()
168 {
169 bool isEditor = Application.isEditor;
170 }
171
172 // Token: 0x060000BB RID: 187 RVA: 0x00003828 File Offset: 0x00001A28
173 private static void playerLoggedOut()
174 {
175 string text;
176 bool flag = string.IsNullOrEmpty(text);
177 }
178
179 // Token: 0x060000BC RID: 188 RVA: 0x00003844 File Offset: 0x00001A44
180 private static void playerAuthenticated()
181 {
182 bool isEditor = Application.isEditor;
183 if (!true)
184 {
185 }
187 if (!true)
188 {
189 }
196 }
197
198 // Token: 0x060000BD RID: 189 RVA: 0x00003890 File Offset: 0x00001A90
199 private static void _authenticationSucceededEvent(string userID)
200 {
201 if (!true)
202 {
203 }
204 Debug.Log("Player authenticated :" + userID);
206 }
207
208 // Token: 0x060000BE RID: 190 RVA: 0x000038B8 File Offset: 0x00001AB8
209 private static void _authenticationFailedEvent(string error)
210 {
211 if (!true)
212 {
213 }
214 Debug.Log("Player Failed to authenticate :" + error);
216 }
217
218 // Token: 0x17000034 RID: 52
219 // (get) Token: 0x060000BF RID: 191 RVA: 0x000038E0 File Offset: 0x00001AE0
220 // (set) Token: 0x060000C0 RID: 192 RVA: 0x000038FC File Offset: 0x00001AFC
221 public static bool EditorSignedIn
222 {
223 get
224 {
225 /*
226An exception occurred when decompiling this method (060000BF)
227
228ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Android_UserManager::get_EditorSignedIn()
229
230 ---> System.Exception: Basic block has to end with unconditional control flow.
231{
232 Block_0:
233 stloc:int64(var_0_01, ldc.i4:int64(0))
234 stloc:int32(var_1_0D, call:int32(PlayerPrefs::GetInt, ldstr:string("Editor_GPSignedIn"), ldloc:int64[exp:int32](var_0_01)))
235}
236
237 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
238 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
239 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
240 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
241 --- End of inner exception stack trace ---
242 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
243 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
244*/;
245 }
246 set
247 {
249 }
250 }
251
252 // Token: 0x17000035 RID: 53
253 // (get) Token: 0x060000C1 RID: 193 RVA: 0x00003910 File Offset: 0x00001B10
254 // (set) Token: 0x060000C2 RID: 194 RVA: 0x00003920 File Offset: 0x00001B20
255 public static string EditorUserId
256 {
257 get
258 {
259 string text;
260 return text;
261 }
262 set
263 {
264 PlayerPrefs.SetString("Editor_GPUserId", value);
266 }
267 }
268
269 // Token: 0x17000036 RID: 54
270 // (get) Token: 0x060000C3 RID: 195 RVA: 0x00003940 File Offset: 0x00001B40
271 // (set) Token: 0x060000C4 RID: 196 RVA: 0x00003950 File Offset: 0x00001B50
272 public static string EditorUserAlias
273 {
274 get
275 {
276 string text;
277 return text;
278 }
279 set
280 {
281 PlayerPrefs.SetString("Editor_GPUserAlias", value);
283 }
284 }
285
286 // Token: 0x17000037 RID: 55
287 // (get) Token: 0x060000C5 RID: 197 RVA: 0x00003970 File Offset: 0x00001B70
288 // (set) Token: 0x060000C6 RID: 198 RVA: 0x00003984 File Offset: 0x00001B84
289 public static float EditorSignInProcessTimeout
290 {
291 get
292 {
293 return "Editor_GPSignInTimeout";
294 }
295 set
296 {
297 PlayerPrefs.SetFloat("Editor_GPSignInTimeout", value);
299 }
300 }
301
302 // Token: 0x060000C7 RID: 199 RVA: 0x000039A4 File Offset: 0x00001BA4
303 // Note: this type is marked as 'beforefieldinit'.
305 {
306 }
307
308 // Token: 0x0400007D RID: 125
309 public static bool EditorAttemptingSignIn;
310
311 // Token: 0x0400007E RID: 126
313
314 // Token: 0x0400007F RID: 127
315 private static bool _delayedStartup;
316
317 // Token: 0x04000080 RID: 128
318 private static string s_userId;
319
320 // Token: 0x04000081 RID: 129
321 private static string s_gamerTag;
322
323 // Token: 0x04000082 RID: 130
324 private static string s_avatarImageURL;
325
326 // Token: 0x04000083 RID: 131
327 private static bool s_requestedLogin;
328
329 // Token: 0x04000084 RID: 132
330 private static bool s_attemptedPassiveLogin;
331
332 // Token: 0x04000085 RID: 133
333 private static bool s_currentlyLoggingIn;
334
335 // Token: 0x04000086 RID: 134
336 private const string c_accountIdLastUserKey = "AccountId_LastUser";
337
338 // Token: 0x04000087 RID: 135
339 private const string c_accountIdLastUserGameTag = "AccountGamerTag_LastUser";
340
341 // Token: 0x04000088 RID: 136
342 private static bool s_usingCachedId;
343}
class f__AnonymousType0<< Count > j__TPar
static DateTime EditorSignInStart
static DrPlatform.Android.User.LoginState CurrentState
static void playerAuthenticated()
const string c_accountIdLastUserGameTag
static void _authenticationFailedEvent(string error)
static void _authenticationSucceededEvent(string userID)
static string AccountProfileURL
static float EditorSignInProcessTimeout
const string c_accountIdLastUserKey
static bool s_attemptedPassiveLogin
static void OnPlatformUserChanged()
static void Log(object message)
Definition Debug.cs:51
static void SetString(string key, string value)
static void SetFloat(string key, float value)
static DateTime Now
Definition DateTime.cs:530
double TotalSeconds
Definition TimeSpan.cs:137