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: 0x0200241F RID: 9247
|
|
[Token(Token = "0x200241F")]
|
|
public class OculusVRDeviceManager : VRDeviceManager
|
|
{
|
|
// Token: 0x170026F8 RID: 9976
|
|
// (get) Token: 0x0600EEA5 RID: 61093 RVA: 0x0036DC00 File Offset: 0x0036BE00
|
|
[Token(Token = "0x170026F8")]
|
|
protected override IEnumerable<string> BNGHIFGAPMF
|
|
{
|
|
[Token(Token = "0x600EEA5")]
|
|
[Address(RVA = "0x8BFC80", Offset = "0x8BEA80", VA = "0x1808BFC80", Slot = "6")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600EEA5)
|
|
|
|
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: 0x170026F9 RID: 9977
|
|
// (get) Token: 0x0600EEA6 RID: 61094 RVA: 0x0036DC14 File Offset: 0x0036BE14
|
|
[Token(Token = "0x170026F9")]
|
|
protected override string MFMBPKGFMAL
|
|
{
|
|
[Token(Token = "0x600EEA6")]
|
|
[Address(RVA = "0x8BFBE0", Offset = "0x8BE9E0", VA = "0x1808BFBE0", Slot = "7")]
|
|
get
|
|
{
|
|
return "Oculus";
|
|
}
|
|
}
|
|
|
|
// Token: 0x170026FA RID: 9978
|
|
// (get) Token: 0x0600EEA7 RID: 61095 RVA: 0x0036DC28 File Offset: 0x0036BE28
|
|
[Token(Token = "0x170026FA")]
|
|
protected override bool MLGJJEILBIP
|
|
{
|
|
[Token(Token = "0x600EEA7")]
|
|
[Address(RVA = "0x8C0190", Offset = "0x8BEF90", VA = "0x1808C0190", Slot = "8")]
|
|
get
|
|
{
|
|
return MCDBMHHMGKB.NAIBDJACPCI;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170026FB RID: 9979
|
|
// (get) Token: 0x0600EEA8 RID: 61096 RVA: 0x0036DC3C File Offset: 0x0036BE3C
|
|
[Token(Token = "0x170026FB")]
|
|
protected override bool OECOONPHCAF
|
|
{
|
|
[Token(Token = "0x600EEA8")]
|
|
[Address(RVA = "0x8C0060", Offset = "0x8BEE60", VA = "0x1808C0060", Slot = "9")]
|
|
get
|
|
{
|
|
return MCDBMHHMGKB.FGOIMHMCBEG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170026FC RID: 9980
|
|
// (get) Token: 0x0600EEA9 RID: 61097 RVA: 0x0036DC50 File Offset: 0x0036BE50
|
|
[Token(Token = "0x170026FC")]
|
|
protected override bool OOIGBACMDFJ
|
|
{
|
|
[Token(Token = "0x600EEA9")]
|
|
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "10")]
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EEAA RID: 61098 RVA: 0x0036DC60 File Offset: 0x0036BE60
|
|
[Token(Token = "0x600EEAA")]
|
|
[Address(RVA = "0x8BFCE0", Offset = "0x8BEAE0", VA = "0x1808BFCE0", Slot = "14")]
|
|
protected override IEnumerator<KENFJGFMIPM> GLNDMIAKFDB()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600EEAA)
|
|
|
|
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: 0x0600EEAB RID: 61099 RVA: 0x0036DC7C File Offset: 0x0036BE7C
|
|
[Token(Token = "0x600EEAB")]
|
|
[Address(RVA = "0x8C01E0", Offset = "0x8BEFE0", VA = "0x1808C01E0", Slot = "15")]
|
|
protected override void PGFBMJLLHKA(bool IFFAIOGFJJB)
|
|
{
|
|
if (IFFAIOGFJJB)
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EEAC RID: 61100 RVA: 0x0036DCA0 File Offset: 0x0036BEA0
|
|
[Token(Token = "0x600EEAC")]
|
|
[Address(RVA = "0x8BFC10", Offset = "0x8BEA10", VA = "0x1808BFC10", Slot = "16")]
|
|
protected override void EDADLADFGDD()
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
|
}
|
|
|
|
// Token: 0x0600EEAD RID: 61101 RVA: 0x0036DCC0 File Offset: 0x0036BEC0
|
|
[Token(Token = "0x600EEAD")]
|
|
[Address(RVA = "0x8C0250", Offset = "0x8BF050", VA = "0x1808C0250")]
|
|
private void Update()
|
|
{
|
|
if (this.KKJMAMHLJBB)
|
|
{
|
|
this.HGICJCDHBPH();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EEAE RID: 61102 RVA: 0x0036DCE0 File Offset: 0x0036BEE0
|
|
[Token(Token = "0x600EEAE")]
|
|
[Address(RVA = "0x8C00B0", Offset = "0x8BEEB0", VA = "0x1808C00B0", 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: 0x0600EEAF RID: 61103 RVA: 0x0036DD18 File Offset: 0x0036BF18
|
|
[Token(Token = "0x600EEAF")]
|
|
[Address(RVA = "0x8BFBA0", Offset = "0x8BE9A0", VA = "0x1808BFBA0", 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: 0x0600EEB0 RID: 61104 RVA: 0x0036DD54 File Offset: 0x0036BF54
|
|
[Token(Token = "0x600EEB0")]
|
|
[Address(RVA = "0x8BFD30", Offset = "0x8BEB30", VA = "0x1808BFD30")]
|
|
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: 0x0600EEB1 RID: 61105 RVA: 0x0036DDDC File Offset: 0x0036BFDC
|
|
[Token(Token = "0x600EEB1")]
|
|
[Address(RVA = "0x8BFBA0", Offset = "0x8BE9A0", VA = "0x1808BFBA0")]
|
|
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: 0x0600EEB2 RID: 61106 RVA: 0x0036DE18 File Offset: 0x0036C018
|
|
[Token(Token = "0x600EEB2")]
|
|
[Address(RVA = "0x8BFC10", Offset = "0x8BEA10", VA = "0x1808BFC10")]
|
|
private void NEMJJHCEIPD()
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.UpdateCurrentHardwareType();
|
|
}
|
|
|
|
// Token: 0x0600EEB3 RID: 61107 RVA: 0x0036DE38 File Offset: 0x0036C038
|
|
[Token(Token = "0x600EEB3")]
|
|
[Address(RVA = "0x8B6D50", Offset = "0x8B5B50", VA = "0x1808B6D50")]
|
|
public OculusVRDeviceManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600EEB4 RID: 61108 RVA: 0x0036DE4C File Offset: 0x0036C04C
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600EEB4")]
|
|
[Address(RVA = "0x8C0260", Offset = "0x8BF060", VA = "0x1808C0260")]
|
|
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: 0x04009DE2 RID: 40418
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4009DE2")]
|
|
[SerializeField]
|
|
[Header("OVR specific")]
|
|
private OVROverlay cubemapOverlay;
|
|
|
|
// Token: 0x04009DE3 RID: 40419
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4009DE3")]
|
|
[SerializeField]
|
|
private OVROverlay loadingTextQuadOverlay;
|
|
|
|
// Token: 0x04009DE4 RID: 40420
|
|
[Token(Token = "0x4009DE4")]
|
|
public static readonly string[] SUPPORTED_DEVICES_PC;
|
|
|
|
// Token: 0x04009DE5 RID: 40421
|
|
[Token(Token = "0x4009DE5")]
|
|
public static readonly string[] SUPPORTED_DEVICES_ANDROID;
|
|
|
|
// Token: 0x04009DE6 RID: 40422
|
|
[Token(Token = "0x4009DE6")]
|
|
private const string HIOIFHNKPHO = "Oculus";
|
|
|
|
// Token: 0x04009DE7 RID: 40423
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4009DE7")]
|
|
private bool KKJMAMHLJBB;
|
|
}
|
|
}
|