294 lines
12 KiB
C#
294 lines
12 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Platforms.Oculus
|
|
{
|
|
// Token: 0x0200220A RID: 8714
|
|
[Token(Token = "0x200220A")]
|
|
[StructLayout(3)]
|
|
public class OculusVRDeviceManager : VRDeviceManager
|
|
{
|
|
// Token: 0x1700286D RID: 10349
|
|
// (get) Token: 0x0600F029 RID: 61481 RVA: 0x0038E1C0 File Offset: 0x0038C3C0
|
|
[Token(Token = "0x1700286D")]
|
|
protected override IEnumerable<string> BNGHIFGAPMF
|
|
{
|
|
[Token(Token = "0x600F029")]
|
|
[Address(RVA = "0x140E010", Offset = "0x140CA10", VA = "0x18140E010", Slot = "6")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600F029)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<System.String> RecRoom.Platforms.Oculus.OculusVRDeviceManager::GIGDJGPFFDD()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:string[](var_0_05, ldsfld:string[](OculusVRDeviceManager::SUPPORTED_DEVICES_PC))
|
|
}
|
|
|
|
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: 0x1700286E RID: 10350
|
|
// (get) Token: 0x0600F02A RID: 61482 RVA: 0x0038E1D4 File Offset: 0x0038C3D4
|
|
[Token(Token = "0x1700286E")]
|
|
protected override string MFMBPKGFMAL
|
|
{
|
|
[Token(Token = "0x600F02A")]
|
|
[Address(RVA = "0x140DF70", Offset = "0x140C970", VA = "0x18140DF70", Slot = "7")]
|
|
get
|
|
{
|
|
return "Oculus";
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700286F RID: 10351
|
|
// (get) Token: 0x0600F02B RID: 61483 RVA: 0x0038E1E8 File Offset: 0x0038C3E8
|
|
[Token(Token = "0x1700286F")]
|
|
protected override bool MLGJJEILBIP
|
|
{
|
|
[Token(Token = "0x600F02B")]
|
|
[Address(RVA = "0x140E520", Offset = "0x140CF20", VA = "0x18140E520", Slot = "8")]
|
|
get
|
|
{
|
|
return OVRPlugin.hmdPresent;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002870 RID: 10352
|
|
// (get) Token: 0x0600F02C RID: 61484 RVA: 0x0038E1FC File Offset: 0x0038C3FC
|
|
[Token(Token = "0x17002870")]
|
|
protected override bool OECOONPHCAF
|
|
{
|
|
[Token(Token = "0x600F02C")]
|
|
[Address(RVA = "0x140E3F0", Offset = "0x140CDF0", VA = "0x18140E3F0", Slot = "9")]
|
|
get
|
|
{
|
|
return OVRPlugin.userPresent;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002871 RID: 10353
|
|
// (get) Token: 0x0600F02D RID: 61485 RVA: 0x0038E210 File Offset: 0x0038C410
|
|
[Token(Token = "0x17002871")]
|
|
protected override bool OOIGBACMDFJ
|
|
{
|
|
[Token(Token = "0x600F02D")]
|
|
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "10")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F02E RID: 61486 RVA: 0x0038E220 File Offset: 0x0038C420
|
|
[Token(Token = "0x600F02E")]
|
|
[Address(RVA = "0x140E070", Offset = "0x140CA70", VA = "0x18140E070", Slot = "14")]
|
|
protected override IEnumerator<ISchedule> GLNDMIAKFDB()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600F02E)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> RecRoom.Platforms.Oculus.OculusVRDeviceManager::GLNDMIAKFDB()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(OMCNHKBJCGF::System.IDisposable.Dispose, ldloc:OMCNHKBJCGF(var_0))
|
|
stfld:int32(OMCNHKBJCGF::<>1__state, ldloc:OMCNHKBJCGF(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: 0x0600F02F RID: 61487 RVA: 0x0038E23C File Offset: 0x0038C43C
|
|
[Token(Token = "0x600F02F")]
|
|
[Address(RVA = "0x140E570", Offset = "0x140CF70", VA = "0x18140E570", Slot = "15")]
|
|
protected override void PGFBMJLLHKA(bool IFFAIOGFJJB)
|
|
{
|
|
if (IFFAIOGFJJB)
|
|
{
|
|
SingletonMonoBehaviour.Instance.UpdateCurrentHardwareType();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F030 RID: 61488 RVA: 0x0038E260 File Offset: 0x0038C460
|
|
[Token(Token = "0x600F030")]
|
|
[Address(RVA = "0x140DFA0", Offset = "0x140C9A0", VA = "0x18140DFA0", Slot = "16")]
|
|
protected override void EDADLADFGDD()
|
|
{
|
|
SingletonMonoBehaviour.Instance.UpdateCurrentHardwareType();
|
|
}
|
|
|
|
// Token: 0x0600F031 RID: 61489 RVA: 0x0038E280 File Offset: 0x0038C480
|
|
[Token(Token = "0x600F031")]
|
|
[Address(RVA = "0x140E5E0", Offset = "0x140CFE0", VA = "0x18140E5E0")]
|
|
private void Update()
|
|
{
|
|
if (this.KKJMAMHLJBB)
|
|
{
|
|
this.HGICJCDHBPH();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F032 RID: 61490 RVA: 0x0038E2A0 File Offset: 0x0038C4A0
|
|
[Token(Token = "0x600F032")]
|
|
[Address(RVA = "0x140E440", Offset = "0x140CE40", VA = "0x18140E440", Slot = "12")]
|
|
protected override void KIDKENOKIPI()
|
|
{
|
|
LocalPlayerController instance = SingletonMonoBehaviour.Instance;
|
|
int num = 0;
|
|
if (instance != num && SingletonMonoBehaviour.Instance.AKPGDDBMBMK == LocalPlayerController.MIGPLDFLMHA.VR)
|
|
{
|
|
this.HGICJCDHBPH();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F033 RID: 61491 RVA: 0x0038E2D8 File Offset: 0x0038C4D8
|
|
[Token(Token = "0x600F033")]
|
|
[Address(RVA = "0x140DF30", Offset = "0x140C930", VA = "0x18140DF30", Slot = "13")]
|
|
protected override void MJNNFCJFBKF()
|
|
{
|
|
this.KKJMAMHLJBB = false;
|
|
OVROverlay ovroverlay = this.cubemapOverlay;
|
|
int num = 0;
|
|
ovroverlay.enabled = num != 0;
|
|
OVROverlay ovroverlay2 = this.loadingTextQuadOverlay;
|
|
int num2 = 0;
|
|
ovroverlay2.enabled = num2 != 0;
|
|
}
|
|
|
|
// Token: 0x0600F034 RID: 61492 RVA: 0x0038E314 File Offset: 0x0038C514
|
|
[Token(Token = "0x600F034")]
|
|
[Address(RVA = "0x140E0C0", Offset = "0x140CAC0", VA = "0x18140E0C0")]
|
|
private void HGICJCDHBPH()
|
|
{
|
|
this.cubemapOverlay.enabled = true;
|
|
Camera main = Camera.main;
|
|
int num = 0;
|
|
bool flag = main == num;
|
|
this.KKJMAMHLJBB = flag;
|
|
if (!flag)
|
|
{
|
|
Transform transform = Camera.main.transform;
|
|
Transform transform2 = this.loadingTextQuadOverlay.transform;
|
|
Vector3 forward = transform2.forward;
|
|
Vector3 up = Vector3.up;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
int num2 = 0;
|
|
Vector3 up2 = Vector3.up;
|
|
transform2.rotation = num2;
|
|
this.loadingTextQuadOverlay.enabled = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F035 RID: 61493 RVA: 0x0038E3A4 File Offset: 0x0038C5A4
|
|
[Token(Token = "0x600F035")]
|
|
[Address(RVA = "0x140DF30", Offset = "0x140C930", VA = "0x18140DF30")]
|
|
private void CDNDHNKFMAI()
|
|
{
|
|
this.KKJMAMHLJBB = false;
|
|
OVROverlay ovroverlay = this.cubemapOverlay;
|
|
int num = 0;
|
|
ovroverlay.enabled = num != 0;
|
|
OVROverlay ovroverlay2 = this.loadingTextQuadOverlay;
|
|
int num2 = 0;
|
|
ovroverlay2.enabled = num2 != 0;
|
|
}
|
|
|
|
// Token: 0x0600F036 RID: 61494 RVA: 0x0038E3E0 File Offset: 0x0038C5E0
|
|
[Token(Token = "0x600F036")]
|
|
[Address(RVA = "0x140DFA0", Offset = "0x140C9A0", VA = "0x18140DFA0")]
|
|
private void NEMJJHCEIPD()
|
|
{
|
|
SingletonMonoBehaviour.Instance.UpdateCurrentHardwareType();
|
|
}
|
|
|
|
// Token: 0x0600F037 RID: 61495 RVA: 0x0038E400 File Offset: 0x0038C600
|
|
[Token(Token = "0x600F037")]
|
|
[Address(RVA = "0x140E7A0", Offset = "0x140D1A0", VA = "0x18140E7A0")]
|
|
public OculusVRDeviceManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600F038 RID: 61496 RVA: 0x0038E414 File Offset: 0x0038C614
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600F038")]
|
|
[Address(RVA = "0x140E5F0", Offset = "0x140CFF0", VA = "0x18140E5F0")]
|
|
static OculusVRDeviceManager()
|
|
{
|
|
string[] array = new string[2];
|
|
if ("Oculus" != 0)
|
|
{
|
|
}
|
|
array[0] = "Oculus";
|
|
if ("None" != 0)
|
|
{
|
|
}
|
|
array[1] = "None";
|
|
OculusVRDeviceManager.SUPPORTED_DEVICES_PC = array;
|
|
string[] array2 = new string[1];
|
|
if ("Oculus" != 0)
|
|
{
|
|
}
|
|
array2[0] = "Oculus";
|
|
OculusVRDeviceManager.SUPPORTED_DEVICES_ANDROID = array2;
|
|
OculusVRDeviceManager.HIOIFHNKPHO = "Oculus";
|
|
}
|
|
|
|
// Token: 0x04009FAE RID: 40878
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4009FAE")]
|
|
[SerializeField]
|
|
[Header("OVR specific")]
|
|
private OVROverlay cubemapOverlay;
|
|
|
|
// Token: 0x04009FAF RID: 40879
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4009FAF")]
|
|
[SerializeField]
|
|
private OVROverlay loadingTextQuadOverlay;
|
|
|
|
// Token: 0x04009FB0 RID: 40880
|
|
[Token(Token = "0x4009FB0")]
|
|
public static readonly string[] SUPPORTED_DEVICES_PC;
|
|
|
|
// Token: 0x04009FB1 RID: 40881
|
|
[Token(Token = "0x4009FB1")]
|
|
public static readonly string[] SUPPORTED_DEVICES_ANDROID;
|
|
|
|
// Token: 0x04009FB2 RID: 40882
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4009FB2")]
|
|
private bool KKJMAMHLJBB;
|
|
|
|
// Token: 0x04009FB3 RID: 40883
|
|
[Token(Token = "0x4009FB3")]
|
|
private static string HIOIFHNKPHO = null;
|
|
}
|
|
}
|