oh dear
This commit is contained in:
@@ -0,0 +1,206 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine.XR;
|
||||
using Valve.VR;
|
||||
|
||||
namespace RecRoom.Platforms.Steam
|
||||
{
|
||||
// Token: 0x02002408 RID: 9224
|
||||
[Token(Token = "0x2002408")]
|
||||
public class SteamVRDeviceManager : VRDeviceManager
|
||||
{
|
||||
// Token: 0x170026CE RID: 9934
|
||||
// (get) Token: 0x0600EE08 RID: 60936 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x170026CE")]
|
||||
protected override IEnumerable<string> BNGHIFGAPMF
|
||||
{
|
||||
[Token(Token = "0x600EE08")]
|
||||
[Address(RVA = "0xE3FE00", Offset = "0xE3EC00", VA = "0x180E3FE00", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170026CF RID: 9935
|
||||
// (get) Token: 0x0600EE09 RID: 60937 RVA: 0x0036C438 File Offset: 0x0036A638
|
||||
[Token(Token = "0x170026CF")]
|
||||
protected override string MFMBPKGFMAL
|
||||
{
|
||||
[Token(Token = "0x600EE09")]
|
||||
[Address(RVA = "0xE3FCC0", Offset = "0xE3EAC0", VA = "0x180E3FCC0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return "OpenVR";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170026D0 RID: 9936
|
||||
// (get) Token: 0x0600EE0A RID: 60938 RVA: 0x0036C44C File Offset: 0x0036A64C
|
||||
[Token(Token = "0x170026D0")]
|
||||
protected override bool MLGJJEILBIP
|
||||
{
|
||||
[Token(Token = "0x600EE0A")]
|
||||
[Address(RVA = "0xE3FFE0", Offset = "0xE3EDE0", VA = "0x180E3FFE0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170026D1 RID: 9937
|
||||
// (get) Token: 0x0600EE0B RID: 60939 RVA: 0x0036C45C File Offset: 0x0036A65C
|
||||
[Token(Token = "0x170026D1")]
|
||||
protected override bool OECOONPHCAF
|
||||
{
|
||||
[Token(Token = "0x600EE0B")]
|
||||
[Address(RVA = "0xE3FEB0", Offset = "0xE3ECB0", VA = "0x180E3FEB0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
if (OpenVR.System == 0)
|
||||
{
|
||||
}
|
||||
CVRSystem system = OpenVR.System;
|
||||
int num = 0;
|
||||
return system.GetTrackedDeviceActivityLevel((uint)num) == EDeviceActivityLevel.k_EDeviceActivityLevel_UserInteraction;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170026D2 RID: 9938
|
||||
// (get) Token: 0x0600EE0C RID: 60940 RVA: 0x0036C490 File Offset: 0x0036A690
|
||||
[Token(Token = "0x170026D2")]
|
||||
protected override bool OOIGBACMDFJ
|
||||
{
|
||||
[Token(Token = "0x600EE0C")]
|
||||
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EE0D RID: 60941 RVA: 0x0036C4A0 File Offset: 0x0036A6A0
|
||||
[Token(Token = "0x600EE0D")]
|
||||
[Address(RVA = "0xE3FF50", Offset = "0xE3ED50", VA = "0x180E3FF50", Slot = "12")]
|
||||
protected override void KIDKENOKIPI()
|
||||
{
|
||||
if (OpenVR.Compositor != 0)
|
||||
{
|
||||
OpenVR.Compositor.SuspendRendering(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EE0E RID: 60942 RVA: 0x0036C4CC File Offset: 0x0036A6CC
|
||||
[Token(Token = "0x600EE0E")]
|
||||
[Address(RVA = "0xE40030", Offset = "0xE3EE30", VA = "0x180E40030", Slot = "13")]
|
||||
protected override void MJNNFCJFBKF()
|
||||
{
|
||||
if (OpenVR.Compositor != 0)
|
||||
{
|
||||
CVRCompositor compositor = OpenVR.Compositor;
|
||||
int num = 0;
|
||||
compositor.SuspendRendering(num != 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EE0F RID: 60943 RVA: 0x0036C4FC File Offset: 0x0036A6FC
|
||||
[Token(Token = "0x600EE0F")]
|
||||
[Address(RVA = "0xE40130", Offset = "0xE3EF30", VA = "0x180E40130", Slot = "15")]
|
||||
protected override void PGFBMJLLHKA(bool IFFAIOGFJJB)
|
||||
{
|
||||
if (IFFAIOGFJJB)
|
||||
{
|
||||
SteamVR.enabled = true;
|
||||
SteamVR_Render.instance.enabled = true;
|
||||
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600EE10 RID: 60944 RVA: 0x0036C534 File Offset: 0x0036A734
|
||||
[Token(Token = "0x600EE10")]
|
||||
[Address(RVA = "0xE3FE60", Offset = "0xE3EC60", VA = "0x180E3FE60", Slot = "14")]
|
||||
protected override IEnumerator<KENFJGFMIPM> GLNDMIAKFDB()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600EE10)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RecRoom.Platforms.Steam.SteamVRDeviceManager::GLNDMIAKFDB()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
call:void(KDLCJENPKDD::System.IDisposable.Dispose, ldloc:KDLCJENPKDD(var_0))
|
||||
stfld:int32(KDLCJENPKDD::<>1__state, ldloc:KDLCJENPKDD(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
||||
}
|
||||
|
||||
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: 0x0600EE11 RID: 60945 RVA: 0x0036C550 File Offset: 0x0036A750
|
||||
[Token(Token = "0x600EE11")]
|
||||
[Address(RVA = "0xE3FCF0", Offset = "0xE3EAF0", VA = "0x180E3FCF0", Slot = "16")]
|
||||
protected override void EDADLADFGDD()
|
||||
{
|
||||
string loadedDeviceName = XRSettings.loadedDeviceName;
|
||||
if (this.GIGDJGPFFDD() != 0)
|
||||
{
|
||||
XRSettings.enabled = true;
|
||||
}
|
||||
SteamVR.enabled = false;
|
||||
SteamVR_Render instance = SteamVR_Render.instance;
|
||||
int num = 0;
|
||||
instance.enabled = num != 0;
|
||||
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
||||
}
|
||||
|
||||
// Token: 0x0600EE12 RID: 60946 RVA: 0x0036C5A0 File Offset: 0x0036A7A0
|
||||
[Token(Token = "0x600EE12")]
|
||||
[Address(RVA = "0xE400C0", Offset = "0xE3EEC0", VA = "0x180E400C0")]
|
||||
private void NEMJJHCEIPD()
|
||||
{
|
||||
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
||||
}
|
||||
|
||||
// Token: 0x0600EE13 RID: 60947 RVA: 0x0036C5C0 File Offset: 0x0036A7C0
|
||||
[Token(Token = "0x600EE13")]
|
||||
[Address(RVA = "0xE2A250", Offset = "0xE29050", VA = "0x180E2A250")]
|
||||
public SteamVRDeviceManager()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600EE14 RID: 60948 RVA: 0x0036C5D4 File Offset: 0x0036A7D4
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600EE14")]
|
||||
[Address(RVA = "0xE40210", Offset = "0xE3F010", VA = "0x180E40210")]
|
||||
static SteamVRDeviceManager()
|
||||
{
|
||||
string[] array = new string[2];
|
||||
if ("None" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "None";
|
||||
if ("OpenVR" != 0)
|
||||
{
|
||||
}
|
||||
array[1] = "OpenVR";
|
||||
}
|
||||
|
||||
// Token: 0x04009D8F RID: 40335
|
||||
[Token(Token = "0x4009D8F")]
|
||||
public static readonly string[] SUPPORTED_DEVICES;
|
||||
|
||||
// Token: 0x04009D90 RID: 40336
|
||||
[Token(Token = "0x4009D90")]
|
||||
private const string HIOIFHNKPHO = "OpenVR";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user