145 lines
6.8 KiB
C#
145 lines
6.8 KiB
C#
using System;
|
|
using CodeStage.AntiCheat.ObscuredTypes;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Utils.OverridableFields
|
|
{
|
|
// Token: 0x020021D4 RID: 8660
|
|
[Token(Token = "0x20021D4")]
|
|
[Serializable]
|
|
public struct OverridableObscuredInt : BAOFECPMCOB<ObscuredInt>, ECCMHGLDNHK, BGJPLFFADCK<ObscuredInt, KHFABFHGJNG>
|
|
{
|
|
// Token: 0x17002323 RID: 8995
|
|
// (get) Token: 0x0600DDC7 RID: 56775 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x17002323")]
|
|
public bool Overrides
|
|
{
|
|
[Token(Token = "0x600DDC7")]
|
|
[Address(RVA = "0x60EA40", Offset = "0x60D840", VA = "0x18060EA40", Slot = "5")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002324 RID: 8996
|
|
// (get) Token: 0x0600DDC8 RID: 56776 RVA: 0x0033715C File Offset: 0x0033535C
|
|
[Token(Token = "0x17002324")]
|
|
public object ObjectValue
|
|
{
|
|
[Token(Token = "0x600DDC8")]
|
|
[Address(RVA = "0x1105E30", Offset = "0x1104C30", VA = "0x181105E30", Slot = "6")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600DDC8)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object RecRoom.Utils.OverridableFields.OverridableObscuredInt::get_ObjectValue()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:ObscuredInt(var_0_06, ldfld:ObscuredInt(OverridableObscuredInt::value, ldloc:valuetype RecRoom.Utils.OverridableFields.OverridableObscuredInt&(this)))
|
|
stloc:bool(var_1_12, ldfld:bool(ObscuredInt::fakeValueActive, ldfld:ObscuredInt[exp:valuetype [Codestage.Anticheattoolkit.Runtime]CodeStage.AntiCheat.ObscuredTypes.ObscuredInt&](OverridableObscuredInt::value, ldloc:valuetype RecRoom.Utils.OverridableFields.OverridableObscuredInt&(this))))
|
|
}
|
|
|
|
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
|
|
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
|
|
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 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002325 RID: 8997
|
|
// (get) Token: 0x0600DDC9 RID: 56777 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x17002325")]
|
|
public ObscuredInt Value
|
|
{
|
|
[Token(Token = "0x600DDC9")]
|
|
[Address(RVA = "0x1105E80", Offset = "0x1104C80", VA = "0x181105E80", Slot = "4")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600DDCA RID: 56778 RVA: 0x0033717C File Offset: 0x0033537C
|
|
[Token(Token = "0x600DDCA")]
|
|
[Address(RVA = "0x1105E10", Offset = "0x1104C10", VA = "0x181105E10")]
|
|
public OverridableObscuredInt(ObscuredInt ONGBFDACHHG)
|
|
{
|
|
bool fakeValueActive = ONGBFDACHHG.fakeValueActive;
|
|
this.value.fakeValueActive = fakeValueActive;
|
|
}
|
|
|
|
// Token: 0x0600DDCB RID: 56779 RVA: 0x0033719C File Offset: 0x0033539C
|
|
[Token(Token = "0x600DDCB")]
|
|
[Address(RVA = "0x1105DF0", Offset = "0x1104BF0", VA = "0x181105DF0")]
|
|
public OverridableObscuredInt(bool PPEMHAIEECM, ObscuredInt ONGBFDACHHG)
|
|
{
|
|
bool fakeValueActive = ONGBFDACHHG.fakeValueActive;
|
|
this.overrides = PPEMHAIEECM;
|
|
this.value.fakeValueActive = fakeValueActive;
|
|
}
|
|
|
|
// Token: 0x0600DDCC RID: 56780 RVA: 0x003371C4 File Offset: 0x003353C4
|
|
[Token(Token = "0x600DDCC")]
|
|
[Address(RVA = "0x1105D60", Offset = "0x1104B60", VA = "0x181105D60", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
bool fakeValueActive = this.value.fakeValueActive;
|
|
ObscuredInt obscuredInt = this.value;
|
|
string text;
|
|
return text;
|
|
}
|
|
|
|
// Token: 0x0600DDCD RID: 56781 RVA: 0x003371E8 File Offset: 0x003353E8
|
|
[Token(Token = "0x600DDCD")]
|
|
[Address(RVA = "0x1105BF0", Offset = "0x11049F0", VA = "0x181105BF0")]
|
|
public static OverridableObscuredInt FAJDMKOEFLH(ObscuredInt MBJCIBHEOMM)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600DDCE RID: 56782 RVA: 0x003371F8 File Offset: 0x003353F8
|
|
[Token(Token = "0x600DDCE")]
|
|
[Address(RVA = "0x1105C10", Offset = "0x1104A10", VA = "0x181105C10", Slot = "7")]
|
|
public KHFABFHGJNG KCINMMHMPGF()
|
|
{
|
|
KHFABFHGJNG khfabfhgjng = new KHFABFHGJNG();
|
|
ObscuredInt obscuredInt = this.value;
|
|
bool fakeValueActive = this.value.fakeValueActive;
|
|
int num = ObscuredInt.FAJDMKOEFLH(obscuredInt);
|
|
khfabfhgjng.DJCPGNKKDBO = num;
|
|
return khfabfhgjng;
|
|
}
|
|
|
|
// Token: 0x0600DDCF RID: 56783 RVA: 0x00337234 File Offset: 0x00335434
|
|
[Token(Token = "0x600DDCF")]
|
|
[Address(RVA = "0x1105CC0", Offset = "0x1104AC0", VA = "0x181105CC0")]
|
|
public static OverridableObscuredInt PHILDOGCKCK(KHFABFHGJNG KFCHMHOEGPD)
|
|
{
|
|
ObscuredInt obscuredInt;
|
|
bool fakeValueActive = obscuredInt.fakeValueActive;
|
|
KFCHMHOEGPD.DJCPGNKKDBO = (fakeValueActive ? 1 : 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040090A7 RID: 37031
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40090A7")]
|
|
[SerializeField]
|
|
private bool overrides;
|
|
|
|
// Token: 0x040090A8 RID: 37032
|
|
[FieldOffset(Offset = "0x4")]
|
|
[Token(Token = "0x40090A8")]
|
|
[SerializeField]
|
|
private ObscuredInt value;
|
|
}
|
|
}
|