Add v1.0.3.1
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace commanastationwww.multistorydungeons
|
||||
{
|
||||
// Token: 0x0200057B RID: 1403
|
||||
[Token(Token = "0x200057B")]
|
||||
public class FPScounter : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002E32 RID: 11826 RVA: 0x000629D8 File Offset: 0x00060BD8
|
||||
[Token(Token = "0x6002E32")]
|
||||
[Address(RVA = "0x4BED00", Offset = "0x4BDB00", VA = "0x1804BED00")]
|
||||
private void Start()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06002E32)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void commanastationwww.multistorydungeons.FPScounter::Start()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{; Block_0:; stloc:Text(var_0_06, call:Text(Component::GetComponent, ldloc:FPScounter[exp:Component](this))); stfld:Text(FPScounter::textFpsCounter, ldloc:FPScounter(this), ldloc:Text(var_0_06)); };
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
||||
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 344
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1618
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06002E33 RID: 11827 RVA: 0x000629F4 File Offset: 0x00060BF4
|
||||
[Token(Token = "0x6002E33")]
|
||||
[Address(RVA = "0x4BEDA0", Offset = "0x4BDBA0", VA = "0x1804BEDA0")]
|
||||
private void Update()
|
||||
{
|
||||
float num = this.timeleft;
|
||||
float deltaTime = Time.deltaTime;
|
||||
this.timeleft = num;
|
||||
float timeScale = Time.timeScale;
|
||||
float deltaTime2 = Time.deltaTime;
|
||||
int num2 = this.frames;
|
||||
num2++;
|
||||
this.frames = num2;
|
||||
this.accum = timeScale;
|
||||
string text = string.Format("{0:F2} FPS", num2);
|
||||
this.textFpsCounter.text = text;
|
||||
float num3 = this.updateInterval;
|
||||
this.timeleft = num3;
|
||||
int num4 = 0;
|
||||
this.accum = (float)num4;
|
||||
}
|
||||
|
||||
// Token: 0x06002E34 RID: 11828 RVA: 0x00062A88 File Offset: 0x00060C88
|
||||
[Token(Token = "0x6002E34")]
|
||||
[Address(RVA = "0x4BECF0", Offset = "0x4BDAF0", VA = "0x1804BECF0")]
|
||||
public FPScounter()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04003715 RID: 14101
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4003715")]
|
||||
public float updateInterval = 0.5f;
|
||||
|
||||
// Token: 0x04003716 RID: 14102
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4003716")]
|
||||
private float accum;
|
||||
|
||||
// Token: 0x04003717 RID: 14103
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4003717")]
|
||||
private int frames;
|
||||
|
||||
// Token: 0x04003718 RID: 14104
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4003718")]
|
||||
private float timeleft;
|
||||
|
||||
// Token: 0x04003719 RID: 14105
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4003719")]
|
||||
private Text textFpsCounter;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user