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
SoundBank.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003CE RID: 974
7 public class SoundBank
8 {
9 // Token: 0x06001A70 RID: 6768 RVA: 0x0006CACC File Offset: 0x0006ACCC
11 {
12 }
13
14 // Token: 0x06001A71 RID: 6769 RVA: 0x0006CAE0 File Offset: 0x0006ACE0
15 public void LoadMusicId(int musicIndex)
16 {
17 string text2;
18 string text = "Music_" + text2;
20 string text3 = "Music/" + text;
24 }
25
26 // Token: 0x06001A72 RID: 6770 RVA: 0x0006CB24 File Offset: 0x0006AD24
27 public Cue GetCue(string cueId)
28 {
29 /*
30An exception occurred when decompiling this method (06001A72)
31
32ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Audio.Cue Microsoft.Xna.Framework.Audio.SoundBank::GetCue(System.String)
33
34 ---> System.Exception: Basic block has to end with unconditional control flow.
35{
36 Block_0:
37 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Microsoft.Xna.Framework.Audio.Cue>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class Microsoft.Xna.Framework.Audio.Cue>(SoundBank::_cues, ldloc:SoundBank(this)))
38}
39
40 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
41 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
42 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
43 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
44 --- End of inner exception stack trace ---
45 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
46 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
47*/;
48 }
49
50 // Token: 0x040027DC RID: 10204
52 }
53}
class f__AnonymousType0<< Count > j__TPar
SoundBank(AudioEngine engine, string contentPath)
Definition SoundBank.cs:10
Dictionary< string, Cue > _cues
Definition SoundBank.cs:51