m
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: 0x020024EC RID: 9452
|
||||
[Token(Token = "0x20024EC")]
|
||||
public class SteamVRDeviceManager : VRDeviceManager
|
||||
{
|
||||
// Token: 0x17002773 RID: 10099
|
||||
// (get) Token: 0x0600F221 RID: 61985 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17002773")]
|
||||
protected override IEnumerable<string> BNGHIFGAPMF
|
||||
{
|
||||
[Token(Token = "0x600F221")]
|
||||
[Address(RVA = "0x19ECD80", Offset = "0x19EBD80", VA = "0x1819ECD80", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002774 RID: 10100
|
||||
// (get) Token: 0x0600F222 RID: 61986 RVA: 0x00375A0C File Offset: 0x00373C0C
|
||||
[Token(Token = "0x17002774")]
|
||||
protected override string MFMBPKGFMAL
|
||||
{
|
||||
[Token(Token = "0x600F222")]
|
||||
[Address(RVA = "0x19ECC40", Offset = "0x19EBC40", VA = "0x1819ECC40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return "OpenVR";
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002775 RID: 10101
|
||||
// (get) Token: 0x0600F223 RID: 61987 RVA: 0x00375A20 File Offset: 0x00373C20
|
||||
[Token(Token = "0x17002775")]
|
||||
protected override bool MLGJJEILBIP
|
||||
{
|
||||
[Token(Token = "0x600F223")]
|
||||
[Address(RVA = "0x19ECF60", Offset = "0x19EBF60", VA = "0x1819ECF60", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002776 RID: 10102
|
||||
// (get) Token: 0x0600F224 RID: 61988 RVA: 0x00375A30 File Offset: 0x00373C30
|
||||
[Token(Token = "0x17002776")]
|
||||
protected override bool OECOONPHCAF
|
||||
{
|
||||
[Token(Token = "0x600F224")]
|
||||
[Address(RVA = "0x19ECE30", Offset = "0x19EBE30", VA = "0x1819ECE30", Slot = "9")]
|
||||
get
|
||||
{
|
||||
if (OpenVR.System == 0)
|
||||
{
|
||||
}
|
||||
CVRSystem system = OpenVR.System;
|
||||
int num = 0;
|
||||
return system.GetTrackedDeviceActivityLevel((uint)num) == EDeviceActivityLevel.k_EDeviceActivityLevel_UserInteraction;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002777 RID: 10103
|
||||
// (get) Token: 0x0600F225 RID: 61989 RVA: 0x00375A64 File Offset: 0x00373C64
|
||||
[Token(Token = "0x17002777")]
|
||||
protected override bool OOIGBACMDFJ
|
||||
{
|
||||
[Token(Token = "0x600F225")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F226 RID: 61990 RVA: 0x00375A74 File Offset: 0x00373C74
|
||||
[Token(Token = "0x600F226")]
|
||||
[Address(RVA = "0x19ECED0", Offset = "0x19EBED0", VA = "0x1819ECED0", Slot = "12")]
|
||||
protected override void KIDKENOKIPI()
|
||||
{
|
||||
if (OpenVR.Compositor != 0)
|
||||
{
|
||||
OpenVR.Compositor.SuspendRendering(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F227 RID: 61991 RVA: 0x00375AA0 File Offset: 0x00373CA0
|
||||
[Token(Token = "0x600F227")]
|
||||
[Address(RVA = "0x19ECFB0", Offset = "0x19EBFB0", VA = "0x1819ECFB0", Slot = "13")]
|
||||
protected override void MJNNFCJFBKF()
|
||||
{
|
||||
if (OpenVR.Compositor != 0)
|
||||
{
|
||||
CVRCompositor compositor = OpenVR.Compositor;
|
||||
int num = 0;
|
||||
compositor.SuspendRendering(num != 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F228 RID: 61992 RVA: 0x00375AD0 File Offset: 0x00373CD0
|
||||
[Token(Token = "0x600F228")]
|
||||
[Address(RVA = "0x19ED0B0", Offset = "0x19EC0B0", VA = "0x1819ED0B0", Slot = "15")]
|
||||
protected override void PGFBMJLLHKA(bool IFFAIOGFJJB)
|
||||
{
|
||||
if (IFFAIOGFJJB)
|
||||
{
|
||||
SteamVR.enabled = true;
|
||||
SteamVR_Render.instance.enabled = true;
|
||||
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600F229 RID: 61993 RVA: 0x00375B08 File Offset: 0x00373D08
|
||||
[Token(Token = "0x600F229")]
|
||||
[Address(RVA = "0x19ECDE0", Offset = "0x19EBDE0", VA = "0x1819ECDE0", Slot = "14")]
|
||||
protected override IEnumerator<KENFJGFMIPM> GLNDMIAKFDB()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600F229)
|
||||
|
||||
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: 0x0600F22A RID: 61994 RVA: 0x00375B24 File Offset: 0x00373D24
|
||||
[Token(Token = "0x600F22A")]
|
||||
[Address(RVA = "0x19ECC70", Offset = "0x19EBC70", VA = "0x1819ECC70", 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: 0x0600F22B RID: 61995 RVA: 0x00375B74 File Offset: 0x00373D74
|
||||
[Token(Token = "0x600F22B")]
|
||||
[Address(RVA = "0x19ED040", Offset = "0x19EC040", VA = "0x1819ED040")]
|
||||
private void NEMJJHCEIPD()
|
||||
{
|
||||
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
||||
}
|
||||
|
||||
// Token: 0x0600F22C RID: 61996 RVA: 0x00375B94 File Offset: 0x00373D94
|
||||
[Token(Token = "0x600F22C")]
|
||||
[Address(RVA = "0x19D58B0", Offset = "0x19D48B0", VA = "0x1819D58B0")]
|
||||
public SteamVRDeviceManager()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600F22D RID: 61997 RVA: 0x00375BA8 File Offset: 0x00373DA8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600F22D")]
|
||||
[Address(RVA = "0x19ED190", Offset = "0x19EC190", VA = "0x1819ED190")]
|
||||
static SteamVRDeviceManager()
|
||||
{
|
||||
string[] array = new string[2];
|
||||
if ("None" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "None";
|
||||
if ("OpenVR" != 0)
|
||||
{
|
||||
}
|
||||
array[1] = "OpenVR";
|
||||
}
|
||||
|
||||
// Token: 0x04009F86 RID: 40838
|
||||
[Token(Token = "0x4009F86")]
|
||||
public static readonly string[] SUPPORTED_DEVICES;
|
||||
|
||||
// Token: 0x04009F87 RID: 40839
|
||||
[Token(Token = "0x4009F87")]
|
||||
private const string HIOIFHNKPHO = "OpenVR";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user