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
RichPresenceSocialModule.cs
Go to the documentation of this file.
1using System;
3using Terraria.Net;
5
7{
8 // Token: 0x02000526 RID: 1318
10 {
11 // Token: 0x060031AD RID: 12717 RVA: 0x001F8C58 File Offset: 0x001F6E58
12 public void Initialize()
13 {
14 if (!true)
15 {
16 }
17 }
18
19 // Token: 0x060031AE RID: 12718 RVA: 0x001F8C68 File Offset: 0x001F6E68
20 public void Shutdown()
21 {
22 if (!true)
23 {
24 }
25 }
26
27 // Token: 0x060031AF RID: 12719 RVA: 0x001F8C78 File Offset: 0x001F6E78
28 private void UpdatePresence()
29 {
31 RichPresenceState lastState = this._lastState;
32 if (lastState != null)
33 {
36 }
37 this.PublishPresence(currentState);
38 this._lastState = currentState;
39 }
40
41 // Token: 0x060031B0 RID: 12720 RVA: 0x001F8CB4 File Offset: 0x001F6EB4
43 {
45 string text;
46 string textValue = Language.GetTextValue("RichPresence." + text);
48 string text2 = this._infoAboutNetGroup.ComposeInfo();
49 }
50
51 // Token: 0x060031B1 RID: 12721 RVA: 0x001F8CF0 File Offset: 0x001F6EF0
53 {
54 /*
55An exception occurred when decompiling this method (060031B1)
56
57ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Social.Discord.RichPresenceSocialModule::ShouldAllowJoinRequests(Terraria.Social.Base.RichPresenceState)
58
59 ---> System.Exception: Basic block has to end with unconditional control flow.
60{
61 Block_0:
62 stloc:GameModeState(var_0_06, ldfld:GameModeState(RichPresenceState::GameMode, ldloc:RichPresenceState(state)))
63}
64
65 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
66 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
67 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
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 88
69 --- End of inner exception stack trace ---
70 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
71 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
72*/;
73 }
74
75 // Token: 0x060031B2 RID: 12722 RVA: 0x001F8D04 File Offset: 0x001F6F04
76 private string GetJoinSecret()
77 {
78 return this._infoAboutNetGroup.ComposeInfo();
79 }
80
81 // Token: 0x060031B3 RID: 12723 RVA: 0x001F8D1C File Offset: 0x001F6F1C
83 {
84 }
85
86 // Token: 0x04003B59 RID: 15193
88
89 // Token: 0x04003B5A RID: 15194
91
92 // Token: 0x04003B5B RID: 15195
94 }
95}
class f__AnonymousType0<< Count > j__TPar
static string GetTextValue(string key)
Definition Language.cs:54
static RichPresenceState GetCurrentState()
RichPresenceState.GameModeState GameMode