288 lines
12 KiB
C#
288 lines
12 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Platforms.Oculus
|
|
{
|
|
// Token: 0x02002503 RID: 9475
|
|
[Token(Token = "0x2002503")]
|
|
public class OculusVRDeviceManager : VRDeviceManager
|
|
{
|
|
// Token: 0x1700279D RID: 10141
|
|
// (get) Token: 0x0600F2BE RID: 62142 RVA: 0x003771F4 File Offset: 0x003753F4
|
|
[Token(Token = "0x1700279D")]
|
|
protected override IEnumerable<string> BNGHIFGAPMF
|
|
{
|
|
[Token(Token = "0x600F2BE")]
|
|
[Address(RVA = "0x19D7B70", Offset = "0x19D6B70", VA = "0x1819D7B70", Slot = "6")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600F2BE)
|
|
|
|
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: 0x1700279E RID: 10142
|
|
// (get) Token: 0x0600F2BF RID: 62143 RVA: 0x00377208 File Offset: 0x00375408
|
|
[Token(Token = "0x1700279E")]
|
|
protected override string MFMBPKGFMAL
|
|
{
|
|
[Token(Token = "0x600F2BF")]
|
|
[Address(RVA = "0x19D7AD0", Offset = "0x19D6AD0", VA = "0x1819D7AD0", Slot = "7")]
|
|
get
|
|
{
|
|
return "Oculus";
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700279F RID: 10143
|
|
// (get) Token: 0x0600F2C0 RID: 62144 RVA: 0x0037721C File Offset: 0x0037541C
|
|
[Token(Token = "0x1700279F")]
|
|
protected override bool MLGJJEILBIP
|
|
{
|
|
[Token(Token = "0x600F2C0")]
|
|
[Address(RVA = "0x19D8080", Offset = "0x19D7080", VA = "0x1819D8080", Slot = "8")]
|
|
get
|
|
{
|
|
return MCDBMHHMGKB.NAIBDJACPCI;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170027A0 RID: 10144
|
|
// (get) Token: 0x0600F2C1 RID: 62145 RVA: 0x00377230 File Offset: 0x00375430
|
|
[Token(Token = "0x170027A0")]
|
|
protected override bool OECOONPHCAF
|
|
{
|
|
[Token(Token = "0x600F2C1")]
|
|
[Address(RVA = "0x19D7F50", Offset = "0x19D6F50", VA = "0x1819D7F50", Slot = "9")]
|
|
get
|
|
{
|
|
return MCDBMHHMGKB.FGOIMHMCBEG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170027A1 RID: 10145
|
|
// (get) Token: 0x0600F2C2 RID: 62146 RVA: 0x00377244 File Offset: 0x00375444
|
|
[Token(Token = "0x170027A1")]
|
|
protected override bool OOIGBACMDFJ
|
|
{
|
|
[Token(Token = "0x600F2C2")]
|
|
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "10")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F2C3 RID: 62147 RVA: 0x00377254 File Offset: 0x00375454
|
|
[Token(Token = "0x600F2C3")]
|
|
[Address(RVA = "0x19D7BD0", Offset = "0x19D6BD0", VA = "0x1819D7BD0", Slot = "14")]
|
|
protected override IEnumerator<KENFJGFMIPM> GLNDMIAKFDB()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600F2C3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> 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: 0x0600F2C4 RID: 62148 RVA: 0x00377270 File Offset: 0x00375470
|
|
[Token(Token = "0x600F2C4")]
|
|
[Address(RVA = "0x19D80D0", Offset = "0x19D70D0", VA = "0x1819D80D0", Slot = "15")]
|
|
protected override void PGFBMJLLHKA(bool IFFAIOGFJJB)
|
|
{
|
|
if (IFFAIOGFJJB)
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F2C5 RID: 62149 RVA: 0x00377294 File Offset: 0x00375494
|
|
[Token(Token = "0x600F2C5")]
|
|
[Address(RVA = "0x19D7B00", Offset = "0x19D6B00", VA = "0x1819D7B00", Slot = "16")]
|
|
protected override void EDADLADFGDD()
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
|
}
|
|
|
|
// Token: 0x0600F2C6 RID: 62150 RVA: 0x003772B4 File Offset: 0x003754B4
|
|
[Token(Token = "0x600F2C6")]
|
|
[Address(RVA = "0x19D8140", Offset = "0x19D7140", VA = "0x1819D8140")]
|
|
private void Update()
|
|
{
|
|
if (this.KKJMAMHLJBB)
|
|
{
|
|
this.HGICJCDHBPH();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F2C7 RID: 62151 RVA: 0x003772D4 File Offset: 0x003754D4
|
|
[Token(Token = "0x600F2C7")]
|
|
[Address(RVA = "0x19D7FA0", Offset = "0x19D6FA0", VA = "0x1819D7FA0", Slot = "12")]
|
|
protected override void KIDKENOKIPI()
|
|
{
|
|
LocalPlayerController instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (instance != num && SingletonMonoBehaviour.ONCPNMDGGKG.AKPGDDBMBMK == LocalPlayerController.MIGPLDFLMHA.VR)
|
|
{
|
|
this.HGICJCDHBPH();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F2C8 RID: 62152 RVA: 0x0037730C File Offset: 0x0037550C
|
|
[Token(Token = "0x600F2C8")]
|
|
[Address(RVA = "0x19D7A90", Offset = "0x19D6A90", VA = "0x1819D7A90", 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: 0x0600F2C9 RID: 62153 RVA: 0x00377348 File Offset: 0x00375548
|
|
[Token(Token = "0x600F2C9")]
|
|
[Address(RVA = "0x19D7C20", Offset = "0x19D6C20", VA = "0x1819D7C20")]
|
|
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;
|
|
int num2 = 0;
|
|
Vector3 up2 = Vector3.up;
|
|
transform2.rotation = num2;
|
|
this.loadingTextQuadOverlay.enabled = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600F2CA RID: 62154 RVA: 0x003773D0 File Offset: 0x003755D0
|
|
[Token(Token = "0x600F2CA")]
|
|
[Address(RVA = "0x19D7A90", Offset = "0x19D6A90", VA = "0x1819D7A90")]
|
|
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: 0x0600F2CB RID: 62155 RVA: 0x0037740C File Offset: 0x0037560C
|
|
[Token(Token = "0x600F2CB")]
|
|
[Address(RVA = "0x19D7B00", Offset = "0x19D6B00", VA = "0x1819D7B00")]
|
|
private void NEMJJHCEIPD()
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
|
}
|
|
|
|
// Token: 0x0600F2CC RID: 62156 RVA: 0x0037742C File Offset: 0x0037562C
|
|
[Token(Token = "0x600F2CC")]
|
|
[Address(RVA = "0x19D58B0", Offset = "0x19D48B0", VA = "0x1819D58B0")]
|
|
public OculusVRDeviceManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600F2CD RID: 62157 RVA: 0x00377440 File Offset: 0x00375640
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600F2CD")]
|
|
[Address(RVA = "0x19D8150", Offset = "0x19D7150", VA = "0x1819D8150")]
|
|
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;
|
|
}
|
|
|
|
// Token: 0x04009FD9 RID: 40921
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4009FD9")]
|
|
[SerializeField]
|
|
[Header("OVR specific")]
|
|
private OVROverlay cubemapOverlay;
|
|
|
|
// Token: 0x04009FDA RID: 40922
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4009FDA")]
|
|
[SerializeField]
|
|
private OVROverlay loadingTextQuadOverlay;
|
|
|
|
// Token: 0x04009FDB RID: 40923
|
|
[Token(Token = "0x4009FDB")]
|
|
public static readonly string[] SUPPORTED_DEVICES_PC;
|
|
|
|
// Token: 0x04009FDC RID: 40924
|
|
[Token(Token = "0x4009FDC")]
|
|
public static readonly string[] SUPPORTED_DEVICES_ANDROID;
|
|
|
|
// Token: 0x04009FDD RID: 40925
|
|
[Token(Token = "0x4009FDD")]
|
|
private const string HIOIFHNKPHO = "Oculus";
|
|
|
|
// Token: 0x04009FDE RID: 40926
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4009FDE")]
|
|
private bool KKJMAMHLJBB;
|
|
}
|
|
}
|