Files
Dec2017-Script-Dump/Assembly-CSharp/SteamVR_ExternalCamera.cs
T
2026-06-04 11:42:34 +02:00

5137 lines
180 KiB
C#

using System;
using System.IO;
using System.Reflection;
using UnityEngine;
using UnityEngine.Rendering;
using UnityStandardAssets.CinematicEffects;
using Valve.VR;
// Token: 0x020007CE RID: 1998
public class SteamVR_ExternalCamera : MonoBehaviour
{
// Token: 0x060105CA RID: 67018 RVA: 0x004CD5A0 File Offset: 0x004CB7A0
private void JMHIHECKHDE()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(1162f, 635f, 1562f, 1385f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1066f)
{
this.MIDPDKHDBBP = SteamVR_Camera.MIDPDKHDBBP;
SteamVR_Camera.OLIEBJFCBAP(this.config.sceneResolutionScale);
}
}
// Token: 0x060105CB RID: 67019 RVA: 0x004CD69C File Offset: 0x004CB89C
public void MJKGAAALNAG()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[1];
array3[1] = '@';
string[] array4 = text2.Split(array3);
if (array4.Length == 1)
{
string text3 = array4[0];
if (text3 == "ReconnectToMaster() with AuthValues == null is not correct!")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[0] = (char)(-79);
string[] array6 = text4.Split(array5);
if (array6.Length == -118)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[0]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[0]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[7]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[0]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[7]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[5]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[7]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[52]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-64]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[71]);
flag = false;
}
}
else if (text3 == "PROMO_1234")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~NotifyFilters.LastAccess;
this.KMJBPJIJGPC.Changed += this.IJGGOGHOHAA;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x060105CC RID: 67020 RVA: 0x004CD9B0 File Offset: 0x004CBBB0
public void BNAOFOJDBFP()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 0;
int num2 = Screen.height / 1;
Graphics.DrawTexture(new Rect(1349f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x060105CD RID: 67021 RVA: 0x004CDA54 File Offset: 0x004CBC54
public float PPEGFGMEGJK()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 120f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 884f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1296f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1633f, this.config.far - 1195f);
}
// Token: 0x060105CE RID: 67022 RVA: 0x004CDB64 File Offset: 0x004CBD64
public void PCLKCLIJGCI()
{
int num = Screen.width / 1;
int num2 = Screen.height / 7;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, 72, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 0);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = (CameraClearFlags)8;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.BMAPKKCHIAI() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 1; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("Failed to modify game session in-progress state"))
{
monoBehaviour.enabled = false;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(true);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(607f, 20f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent(" iterations for read and write") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = true;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = false;
}
Graphics.DrawTexture(new Rect((float)num, 282f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(true);
if (array != null)
{
for (int j = 0; j < array.Length; j++)
{
if (array2[j])
{
array[j].enabled = true;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x060105CF RID: 67023 RVA: 0x004CDE98 File Offset: 0x004CC098
private void KBEKKCLBAOD()
{
}
// Token: 0x060105D0 RID: 67024 RVA: 0x004CDE9C File Offset: 0x004CC09C
private void IPIFGGBNGLP()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(1524f, 97f, 1505f, 1531f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1894f)
{
this.MIDPDKHDBBP = SteamVR_Camera.JLGBGEDBBPO();
SteamVR_Camera.MIDPDKHDBBP = this.config.sceneResolutionScale;
}
}
// Token: 0x060105D1 RID: 67025 RVA: 0x004CDF98 File Offset: 0x004CC198
private void EFHAMBINFKC()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 914f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x060105D2 RID: 67026 RVA: 0x004CE028 File Offset: 0x004CC228
private void BCPFDCJJNCE()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(307f, 518f, 849f, 1704f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 758f)
{
this.MIDPDKHDBBP = SteamVR_Camera.MIDPDKHDBBP;
SteamVR_Camera.OLIEBJFCBAP(this.config.sceneResolutionScale);
}
}
// Token: 0x060105D3 RID: 67027 RVA: 0x004CE124 File Offset: 0x004CC324
private void EMCIDNALPKI()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(1301f, 753f, 997f, 1869f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 849f)
{
this.MIDPDKHDBBP = SteamVR_Camera.MIDPDKHDBBP;
SteamVR_Camera.COHIKKPKGIM(this.config.sceneResolutionScale);
}
}
// Token: 0x060105D4 RID: 67028 RVA: 0x004CE220 File Offset: 0x004CC420
public void CHEFJMALDKF()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[0] = '\u0015';
string[] array4 = text2.Split(array3);
if (array4.Length == 7)
{
string text3 = array4[1];
if (text3 == "GA FREE - Demo07 (960x600px)")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[0] = '\u0002';
string[] array6 = text4.Split(array5);
if (array6.Length == -14)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[2]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[7]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[6]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[5]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[7]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[5]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[2]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[122]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-108]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[45]);
flag = true;
}
}
else if (text3 == "x4")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.LastAccess);
this.KMJBPJIJGPC.Changed += this.HMGDKMHBGBE;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x060105D5 RID: 67029 RVA: 0x004CE534 File Offset: 0x004CC734
public void EJNNMKPLGGG(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("Go to ");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.TransparentFX);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)43);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("SEM_CO"));
this.HJBDMBBLGNH = new Material(Shader.Find("Group"));
this.KNHGPMLHHEJ = new Material(Shader.Find("User-Agent"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Capsule);
this.MEKNMJIGNCA.name = ", ";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(147f, 1588f, 1806f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x060105D6 RID: 67030 RVA: 0x004CE7D4 File Offset: 0x004CC9D4
public float CAPECBLKEAJ()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1522f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 720f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1204f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1188f, this.config.far - 1844f);
}
// Token: 0x060105D7 RID: 67031 RVA: 0x004CE8E4 File Offset: 0x004CCAE4
private void OnEnable()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(0.5f, 0f, 0.5f, 0.5f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 0f)
{
this.MIDPDKHDBBP = SteamVR_Camera.MIDPDKHDBBP;
SteamVR_Camera.MIDPDKHDBBP = this.config.sceneResolutionScale;
}
}
// Token: 0x060105D8 RID: 67032 RVA: 0x004CE9E0 File Offset: 0x004CCBE0
private void HBBAFHBHBON()
{
}
// Token: 0x060105D9 RID: 67033 RVA: 0x004CE9E4 File Offset: 0x004CCBE4
public void IHNIDNOPHGC()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 4;
int num2 = Screen.height / 6;
Graphics.DrawTexture(new Rect(1729f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x060105DA RID: 67034 RVA: 0x004CEA88 File Offset: 0x004CCC88
public float GetTargetDistance()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 0.01f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 0f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 0f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 0.01f, this.config.far - 0.01f);
}
// Token: 0x060105DB RID: 67035 RVA: 0x004CEB98 File Offset: 0x004CCD98
private void OHKFJNCBPLJ()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(128f, 981f, 1818f, 880f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1627f)
{
this.MIDPDKHDBBP = SteamVR_Camera.LFHDKBPKEPG();
SteamVR_Camera.OLIEBJFCBAP(this.config.sceneResolutionScale);
}
}
// Token: 0x060105DC RID: 67036 RVA: 0x004CEC94 File Offset: 0x004CCE94
private void LEDIHFEFELO()
{
}
// Token: 0x060105DD RID: 67037 RVA: 0x004CEC98 File Offset: 0x004CCE98
private void OnGUI()
{
}
// Token: 0x060105DE RID: 67038 RVA: 0x004CEC9C File Offset: 0x004CCE9C
public void GGIEGGMPDBH(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("PUNCloudBestRegion");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.UI);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-11));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find(". Switching to the recommended level."));
this.HJBDMBBLGNH = new Material(Shader.Find("GameSessionId"));
this.KNHGPMLHHEJ = new Material(Shader.Find("true"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive((PrimitiveType)8);
this.MEKNMJIGNCA.name = "MainCamera";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1164f, 175f, 1264f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x060105DF RID: 67039 RVA: 0x004CEF3C File Offset: 0x004CD13C
private void LGAHPMNKCJB()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(465f, 358f, 17f, 1760f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1551f)
{
this.MIDPDKHDBBP = SteamVR_Camera.JLGBGEDBBPO();
SteamVR_Camera.AGNOLFJKHON(this.config.sceneResolutionScale);
}
}
// Token: 0x060105E0 RID: 67040 RVA: 0x004CF038 File Offset: 0x004CD238
public float OMFAOFOLOIP()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1035f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1948f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 941f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1352f, this.config.far - 1717f);
}
// Token: 0x060105E1 RID: 67041 RVA: 0x004CF148 File Offset: 0x004CD348
private void FOLOOIODEHB()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 1467f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x060105E2 RID: 67042 RVA: 0x004CF1D8 File Offset: 0x004CD3D8
public void LLADPFDIHEA()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[0] = (char)(-119);
string[] array4 = text2.Split(array3);
if (array4.Length == 8)
{
string text3 = array4[0];
if (text3 == "NEWPLAYER_PUNCHCARD")
{
string text4 = array4[0];
char[] array5 = new char[0];
array5[0] = '+';
string[] array6 = text4.Split(array5);
if (array6.Length == 127)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[0]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[4]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[6]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[2]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[5]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[3]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[0]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[62]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[2]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[-60]);
flag = true;
}
}
else if (text3 == "Nouns")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.CreationTime | NotifyFilters.FileName | NotifyFilters.LastAccess);
this.KMJBPJIJGPC.Changed += this.IJGGOGHOHAA;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x060105E3 RID: 67043 RVA: 0x004CF4EC File Offset: 0x004CD6EC
public void APBDHMCNHGF(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("stab");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.Water);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-11));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find(" respawn: "));
this.HJBDMBBLGNH = new Material(Shader.Find("null"));
this.KNHGPMLHHEJ = new Material(Shader.Find("No message dialog found"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive((PrimitiveType)6);
this.MEKNMJIGNCA.name = ", force: ";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.On;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1962f, 163f, 886f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x060105E4 RID: 67044 RVA: 0x004CF78C File Offset: 0x004CD98C
public void ILMFMHJHFMO(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("looktarget");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)6);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-38));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("Unsupported file format"));
this.HJBDMBBLGNH = new Material(Shader.Find("Failed to get platform authentication params"));
this.KNHGPMLHHEJ = new Material(Shader.Find("Xp"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Cube);
this.MEKNMJIGNCA.name = " seconds";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.On;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.BlendProbes;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1864f, 104f, 1447f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x060105E5 RID: 67045 RVA: 0x004CFA2C File Offset: 0x004CDC2C
public void OAAGMCLCEGH()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = (char)(-41);
string[] array4 = text2.Split(array3);
if (array4.Length == 5)
{
string text3 = array4[1];
if (text3 == "\\f")
{
string[] array5 = array4[1].Split(new char[] { ' ' });
if (array5.Length == -26)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array5[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array5[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array5[5]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array5[3]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array5[4]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array5[1]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array5[3]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array5[4]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array5[1]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array5[-52]);
kddjnndmeef.MEMLICAACIA = float.Parse(array5[-49]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array5[3]);
flag = true;
}
}
else if (text3 == "vector3")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.LastAccess;
this.KMJBPJIJGPC.Changed += this.CBILNGFDBFA;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x060105E6 RID: 67046 RVA: 0x004CFD40 File Offset: 0x004CDF40
public float CFBOBAKLNPD()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1688f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1592f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1649f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1198f, this.config.far - 1030f);
}
// Token: 0x060105E7 RID: 67047 RVA: 0x004CFE50 File Offset: 0x004CE050
public float HHFLBBPPPEC()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1350f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1335f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1603f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 853f, this.config.far - 166f);
}
// Token: 0x060105E8 RID: 67048 RVA: 0x004CFF60 File Offset: 0x004CE160
private void BIAAJIANIBO()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 403f)
{
SteamVR_Camera.AGNOLFJKHON(this.MIDPDKHDBBP);
}
}
// Token: 0x060105E9 RID: 67049 RVA: 0x004CFFF0 File Offset: 0x004CE1F0
public void OBLAMCMEKAK()
{
int num = Screen.width / 1;
int num2 = Screen.height / 4;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, 27, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 0);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = (CameraClearFlags)5;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.FAAKDIMBPMP() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("S"))
{
monoBehaviour.enabled = true;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(229f, 1120f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("Hints: ") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = true;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = true;
}
Graphics.DrawTexture(new Rect((float)num, 1378f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 0; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x060105EA RID: 67050 RVA: 0x004D0324 File Offset: 0x004CE524
private void PJDGKNJEFHL()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 595f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x060105EB RID: 67051 RVA: 0x004D03B4 File Offset: 0x004CE5B4
public void NKBEPNNBJOJ(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("\\n");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)3);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-74));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = false;
this.FIHNNACMMAL = new Material(Shader.Find("Update Thread Ended"));
this.HJBDMBBLGNH = new Material(Shader.Find("Deleted "));
this.KNHGPMLHHEJ = new Material(Shader.Find("PlayerIgnoreBuffer"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Quad);
this.MEKNMJIGNCA.name = "GameSessionId";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.On;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1387f, 1884f, 601f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x060105EC RID: 67052 RVA: 0x004D0654 File Offset: 0x004CE854
public float JKMAIOMNBLL()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1789f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 763f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1383f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 107f, this.config.far - 1778f);
}
// Token: 0x060105ED RID: 67053 RVA: 0x004D0764 File Offset: 0x004CE964
public void JKNLCHJFGPG(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("sofa");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)3);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)123);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("Invalid day entered"));
this.HJBDMBBLGNH = new Material(Shader.Find("Player"));
this.KNHGPMLHHEJ = new Material(Shader.Find("type"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Quad);
this.MEKNMJIGNCA.name = "PhotonNetwork error: Could not Instantiate the prefab [";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.BlendProbes;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1379f, 1665f, 983f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x060105EE RID: 67054 RVA: 0x004D0A04 File Offset: 0x004CEC04
private void LADAANOLMNP()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(1884f, 1305f, 1426f, 1631f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 564f)
{
this.MIDPDKHDBBP = SteamVR_Camera.LFHDKBPKEPG();
SteamVR_Camera.HBOCBNKJPBB(this.config.sceneResolutionScale);
}
}
// Token: 0x060105EF RID: 67055 RVA: 0x004D0B00 File Offset: 0x004CED00
private void HDIFGIGHOOB(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.BHJGJHHDOFN();
}
// Token: 0x060105F0 RID: 67056 RVA: 0x004D0B08 File Offset: 0x004CED08
public void JADPCDIEJGP()
{
int num = Screen.width / 4;
int num2 = Screen.height / 1;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, 108, RenderTextureFormat.Depth);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 1);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = CameraClearFlags.Depth;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.MDKKBJFDPPD() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i += 0)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("mydemo.com"))
{
monoBehaviour.enabled = false;
array2[i] = false;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(388f, 1963f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("Hit") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = true;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = true;
}
Graphics.DrawTexture(new Rect((float)num, 1199f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 0; j < array.Length; j++)
{
if (array2[j])
{
array[j].enabled = true;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x060105F1 RID: 67057 RVA: 0x004D0E3C File Offset: 0x004CF03C
private void JFBNKKPABOC()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(676f, 617f, 1248f, 1871f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 644f)
{
this.MIDPDKHDBBP = SteamVR_Camera.FGHBPOJMOIK();
SteamVR_Camera.MIDPDKHDBBP = this.config.sceneResolutionScale;
}
}
// Token: 0x060105F2 RID: 67058 RVA: 0x004D0F38 File Offset: 0x004CF138
public void DLAGDHJFAEI()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 0;
int num2 = Screen.height / 0;
Graphics.DrawTexture(new Rect(1807f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x060105F3 RID: 67059 RVA: 0x004D0FDC File Offset: 0x004CF1DC
private void IDFPLDOPKCF(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.BCIKCDJKEDJ();
}
// Token: 0x060105F4 RID: 67060 RVA: 0x004D0FE4 File Offset: 0x004CF1E4
public float POHJJLDBDGB()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1549f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 878f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 678f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1116f, this.config.far - 606f);
}
// Token: 0x060105F5 RID: 67061 RVA: 0x004D10F4 File Offset: 0x004CF2F4
public void CNLLBDMIMEI()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = '\u0011';
string[] array4 = text2.Split(array3);
if (array4.Length == 7)
{
string text3 = array4[1];
if (text3 == "RegionId")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[0] = (char)(-46);
string[] array6 = text4.Split(array5);
if (array6.Length == -74)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[2]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[0]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[6]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[8]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[7]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[2]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[3]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[-24]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[94]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[-96]);
flag = true;
}
}
else if (text3 == "mydemo.com")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.LastWrite | NotifyFilters.Size;
this.KMJBPJIJGPC.Changed += this.JLNOPNBODLP;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x060105F6 RID: 67062 RVA: 0x004D1408 File Offset: 0x004CF608
public float GDPIALCIBDM()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 330f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 626f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 780f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1728f, this.config.far - 333f);
}
// Token: 0x060105F7 RID: 67063 RVA: 0x004D1518 File Offset: 0x004CF718
public float PDFJJKIKBIF()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 81f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 210f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1590f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 285f, this.config.far - 1187f);
}
// Token: 0x060105F8 RID: 67064 RVA: 0x004D1628 File Offset: 0x004CF828
public void HGHIBPFONBB()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 3;
int num2 = Screen.height / 6;
Graphics.DrawTexture(new Rect(844f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x060105F9 RID: 67065 RVA: 0x004D16CC File Offset: 0x004CF8CC
private void APCBLIDGFPA()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 1125f)
{
SteamVR_Camera.AGNOLFJKHON(this.MIDPDKHDBBP);
}
}
// Token: 0x060105FA RID: 67066 RVA: 0x004D175C File Offset: 0x004CF95C
public void BCIKCDJKEDJ()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = (char)(-34);
string[] array4 = text2.Split(array3);
if (array4.Length == 2)
{
string text3 = array4[1];
if (text3 == "readForeignSaves")
{
string text4 = array4[0];
char[] array5 = new char[1];
array5[1] = (char)(-103);
string[] array6 = text4.Split(array5);
if (array6.Length == -122)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[0]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[4]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[0]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[7]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[4]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[5]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[6]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[15]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-62]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[85]);
flag = false;
}
}
else if (text3 == "{0} - Redirected to Location: '{1}' redirectUri: '{1}'")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.LastAccess | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.HMGDKMHBGBE;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x060105FB RID: 67067 RVA: 0x004D1A70 File Offset: 0x004CFC70
private void OBIKAFEHEPD()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 801f)
{
SteamVR_Camera.MIDPDKHDBBP = this.MIDPDKHDBBP;
}
}
// Token: 0x060105FC RID: 67068 RVA: 0x004D1B00 File Offset: 0x004CFD00
public void NLNGPHDBIPF()
{
int num = Screen.width / 0;
int num2 = Screen.height / 0;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, 9, RenderTextureFormat.Depth);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 1);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = CameraClearFlags.Nothing;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.PPEGFGMEGJK() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("Failed to set skybox override with error: "))
{
monoBehaviour.enabled = false;
array2[i] = false;
}
}
}
this.MEKNMJIGNCA.SetActive(true);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(999f, 1063f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("&z=") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = false;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = false;
}
Graphics.DrawTexture(new Rect((float)num, 732f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 0; j < array.Length; j++)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x060105FD RID: 67069 RVA: 0x004D1E34 File Offset: 0x004D0034
private void NMCFOAKPKLJ(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.MJKGAAALNAG();
}
// Token: 0x060105FE RID: 67070 RVA: 0x004D1E3C File Offset: 0x004D003C
private void MGJFBPMGCJM()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 1927f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x060105FF RID: 67071 RVA: 0x004D1ECC File Offset: 0x004D00CC
public void HBKMIGMALIG(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("Bad size in GZIP trailer. (actual({0})!=expected({1}))");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.IgnoreRaycast);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-75));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = false;
this.FIHNNACMMAL = new Material(Shader.Find("activityNameFriendly"));
this.HJBDMBBLGNH = new Material(Shader.Find("namedcolorvalue"));
this.KNHGPMLHHEJ = new Material(Shader.Find("Two"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive((PrimitiveType)8);
this.MEKNMJIGNCA.name = "HTTPRequest";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(827f, 1727f, 611f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x06010600 RID: 67072 RVA: 0x004D216C File Offset: 0x004D036C
public float HLDDPKEJENG()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 547f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1989f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1454f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 994f, this.config.far - 1144f);
}
// Token: 0x06010601 RID: 67073 RVA: 0x004D227C File Offset: 0x004D047C
private void KCMNJEOIEHL()
{
}
// Token: 0x06010602 RID: 67074 RVA: 0x004D2280 File Offset: 0x004D0480
public void OLEIPJDOOMD()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 8;
int num2 = Screen.height / 1;
Graphics.DrawTexture(new Rect(1842f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x06010603 RID: 67075 RVA: 0x004D2324 File Offset: 0x004D0524
public void DLIKOFKNLAG()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 0;
int num2 = Screen.height / 6;
Graphics.DrawTexture(new Rect(945f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x06010604 RID: 67076 RVA: 0x004D23C8 File Offset: 0x004D05C8
public float OEENNGFPIAL()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 770f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1979f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 784f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 558f, this.config.far - 559f);
}
// Token: 0x06010605 RID: 67077 RVA: 0x004D24D8 File Offset: 0x004D06D8
public void BLFBFHPDCGM()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string[] array3 = text.Split(new char[] { (char)(-32) });
if (array3.Length == 7)
{
string text2 = array3[1];
if (text2 == "WaitForHomeScreenCurrentFlow")
{
string[] array4 = array3[1].Split(new char[] { (char)(-5) });
if (array4.Length == 83)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array4[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array4[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array4[0]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array4[6]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array4[8]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array4[7]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array4[8]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array4[1]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array4[1]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array4[-42]);
kddjnndmeef.MEMLICAACIA = float.Parse(array4[44]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array4[-122]);
flag = false;
}
}
else if (text2 == "MessagesScreenItem.FormatMessage() - Unhandled MessageType: {0}")
{
FieldInfo field = obj.GetType().GetField(text2);
if (field != null)
{
field.SetValue(obj, bool.Parse(array3[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text2);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array3[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.HMGDKMHBGBE;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010606 RID: 67078 RVA: 0x004D27EC File Offset: 0x004D09EC
private void MILDLABECKC()
{
}
// Token: 0x06010607 RID: 67079 RVA: 0x004D27F0 File Offset: 0x004D09F0
public void EGIFNIJHMFP()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[1];
array3[1] = '\u0013';
string[] array4 = text2.Split(array3);
if (array4.Length == 2)
{
string text3 = array4[0];
if (text3 == "No test left")
{
string text4 = array4[0];
char[] array5 = new char[0];
array5[1] = (char)(-110);
string[] array6 = text4.Split(array5);
if (array6.Length == -46)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[4]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[0]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[7]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[4]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[0]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[6]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[6]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[-71]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-28]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[-39]);
flag = true;
}
}
else if (text3 == "PS4PlatformManager: Failed to retrieve PSN friends: ")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.FileName | NotifyFilters.LastAccess;
this.KMJBPJIJGPC.Changed += this.OJFCEIJGJDE;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010608 RID: 67080 RVA: 0x004D2B04 File Offset: 0x004D0D04
private void HMGDKMHBGBE(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.MMEPECAMHPD();
}
// Token: 0x06010609 RID: 67081 RVA: 0x004D2B0C File Offset: 0x004D0D0C
public void AttachToCamera(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("camera");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.HiddenInFirstPerson);
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.OverlayNotifications);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = false;
this.FIHNNACMMAL = new Material(Shader.Find("Custom/SteamVR_ColorOut"));
this.HJBDMBBLGNH = new Material(Shader.Find("Custom/SteamVR_AlphaOut"));
this.KNHGPMLHHEJ = new Material(Shader.Find("Custom/SteamVR_ClearAll"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Quad);
this.MEKNMJIGNCA.name = "ClipQuad";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1000f, 1000f, 1f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x0601060A RID: 67082 RVA: 0x004D2DAC File Offset: 0x004D0FAC
private void LKLBCGNBJEM()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(671f, 817f, 1226f, 49f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1631f)
{
this.MIDPDKHDBBP = SteamVR_Camera.LFHDKBPKEPG();
SteamVR_Camera.AGNOLFJKHON(this.config.sceneResolutionScale);
}
}
// Token: 0x0601060B RID: 67083 RVA: 0x004D2EA8 File Offset: 0x004D10A8
private void JPLHGLLAELO()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(139f, 12f, 1509f, 685f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1862f)
{
this.MIDPDKHDBBP = SteamVR_Camera.LFHDKBPKEPG();
SteamVR_Camera.OLIEBJFCBAP(this.config.sceneResolutionScale);
}
}
// Token: 0x0601060C RID: 67084 RVA: 0x004D2FA4 File Offset: 0x004D11A4
public void JPIFLFBHKDG()
{
int num = Screen.width / 8;
int num2 = Screen.height / 8;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, -37, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 1);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = CameraClearFlags.Nothing;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.CFBOBAKLNPD() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i += 0)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith(". Check to make sure you have the exact matching guid from the OutfitManager."))
{
monoBehaviour.enabled = false;
array2[i] = false;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(292f, 781f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("[ACTk] <b>[ ObscuredVector3 test ]</b>") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = true;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = true;
}
Graphics.DrawTexture(new Rect((float)num, 1215f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 0; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x0601060D RID: 67085 RVA: 0x004D32D8 File Offset: 0x004D14D8
private void KBHCFIJFDGF()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 1959f)
{
SteamVR_Camera.MIDPDKHDBBP = this.MIDPDKHDBBP;
}
}
// Token: 0x0601060E RID: 67086 RVA: 0x004D3368 File Offset: 0x004D1568
private void CPBFCHOKCLK()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(1132f, 647f, 44f, 528f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1523f)
{
this.MIDPDKHDBBP = SteamVR_Camera.JLGBGEDBBPO();
SteamVR_Camera.MIDPDKHDBBP = this.config.sceneResolutionScale;
}
}
// Token: 0x0601060F RID: 67087 RVA: 0x004D3464 File Offset: 0x004D1664
public void FPPPJJLEGGB()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = (char)(-90);
string[] array4 = text2.Split(array3);
if (array4.Length == 4)
{
string text3 = array4[0];
if (text3 == "Wireframe")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[0] = (char)(-66);
string[] array6 = text4.Split(array5);
if (array6.Length == -72)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[8]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[4]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[4]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[3]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[2]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[5]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[2]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[-103]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[116]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[46]);
flag = true;
}
}
else if (text3 == "\n")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.OJFCEIJGJDE;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010610 RID: 67088 RVA: 0x004D3778 File Offset: 0x004D1978
public void ReadConfig()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
foreach (string text in array)
{
string[] array3 = text.Split(new char[] { '=' });
if (array3.Length == 2)
{
string text2 = array3[0];
if (text2 == "m")
{
string[] array4 = array3[1].Split(new char[] { ',' });
if (array4.Length == 12)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array4[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array4[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array4[2]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array4[3]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array4[4]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array4[5]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array4[6]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array4[7]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array4[8]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array4[9]);
kddjnndmeef.MEMLICAACIA = float.Parse(array4[10]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array4[11]);
flag = true;
}
}
else if (text2 == "disableStandardAssets")
{
FieldInfo field = obj.GetType().GetField(text2);
if (field != null)
{
field.SetValue(obj, bool.Parse(array3[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text2);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array3[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = NotifyFilters.LastWrite;
this.KMJBPJIJGPC.Changed += this.KNBNBFJFIHA;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010611 RID: 67089 RVA: 0x004D3A8C File Offset: 0x004D1C8C
public void LGGHKBPPPEA()
{
int num = Screen.width / 3;
int num2 = Screen.height / 0;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, -40, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 1);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = (CameraClearFlags)7;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.JANNBBOJDHP() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 1; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith(" ms"))
{
monoBehaviour.enabled = true;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(1334f, 1664f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("amount") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = true;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = false;
}
Graphics.DrawTexture(new Rect((float)num, 1149f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 1; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x06010612 RID: 67090 RVA: 0x004D3DC0 File Offset: 0x004D1FC0
public void EMKPFHMOLPN()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string[] array3 = text.Split(new char[] { 'Y' });
if (array3.Length == 5)
{
string text2 = array3[0];
if (text2 == "User Timing Category")
{
string[] array4 = array3[0].Split(new char[] { 'q' });
if (array4.Length == 63)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array4[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array4[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array4[2]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array4[4]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array4[3]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array4[6]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array4[4]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array4[7]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array4[6]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array4[-101]);
kddjnndmeef.MEMLICAACIA = float.Parse(array4[55]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array4[102]);
flag = false;
}
}
else if (text2 == "B")
{
FieldInfo field = obj.GetType().GetField(text2);
if (field != null)
{
field.SetValue(obj, bool.Parse(array3[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text2);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array3[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.DirectoryName | NotifyFilters.LastAccess | NotifyFilters.LastWrite);
this.KMJBPJIJGPC.Changed += this.IDFPLDOPKCF;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010614 RID: 67092 RVA: 0x004D40DC File Offset: 0x004D22DC
public void FDJMKOBHLLN()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = ']';
string[] array4 = text2.Split(array3);
if (array4.Length == 2)
{
string text3 = array4[0];
if (text3 == "api/gamesessions/v2/")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[1] = (char)(-121);
string[] array6 = text4.Split(array5);
if (array6.Length == -20)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[8]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[6]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[6]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[4]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[1]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[2]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[6]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[105]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-22]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[-8]);
flag = false;
}
}
else if (text3 == "{0}v2/send")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.MCEEMHAMNDI;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010615 RID: 67093 RVA: 0x004D43F0 File Offset: 0x004D25F0
public void JOFHDOLLNLF(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("PlayerId");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.Default);
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.FirstPersonShadowCaster);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = false;
this.FIHNNACMMAL = new Material(Shader.Find("Unmuted"));
this.HJBDMBBLGNH = new Material(Shader.Find("easetype"));
this.KNHGPMLHHEJ = new Material(Shader.Find("GA FREE - Demo06 (960x600px)"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Sphere);
this.MEKNMJIGNCA.name = "RelationshipType";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.BlendProbes;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(691f, 28f, 720f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x06010616 RID: 67094 RVA: 0x004D4690 File Offset: 0x004D2890
public float FAAKDIMBPMP()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1259f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1518f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1956f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1750f, this.config.far - 1268f);
}
// Token: 0x06010617 RID: 67095 RVA: 0x004D47A0 File Offset: 0x004D29A0
public void NMPGLEKJHAG()
{
int num = Screen.width / 0;
int num2 = Screen.height / 3;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, -63, RenderTextureFormat.Depth);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 0);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = (CameraClearFlags)7;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.HLDDPKEJENG() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i += 0)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("CinematicTemplateController"))
{
monoBehaviour.enabled = true;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(1198f, 445f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("demoQuaternion") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = false;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = false;
}
Graphics.DrawTexture(new Rect((float)num, 832f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(true);
if (array != null)
{
for (int j = 0; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = true;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x06010618 RID: 67096 RVA: 0x004D4AD4 File Offset: 0x004D2CD4
private void CBILNGFDBFA(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.OAAGMCLCEGH();
}
// Token: 0x06010619 RID: 67097 RVA: 0x004D4ADC File Offset: 0x004D2CDC
public void AFMMDJACBJF(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("soccer");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.HiddenInFirstPerson);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-54));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("name"));
this.HJBDMBBLGNH = new Material(Shader.Find("REVIVED BY "));
this.KNHGPMLHHEJ = new Material(Shader.Find("This method is only valid for sockets in the InterNetwork and InterNetworkV6 families"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive((PrimitiveType)7);
this.MEKNMJIGNCA.name = "Cannot send messages when not connected. Either connect to Photon OR use offline mode!";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.BlendProbes;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(826f, 1173f, 806f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x0601061A RID: 67098 RVA: 0x004D4D7C File Offset: 0x004D2F7C
public float ODGJIGOFDIC()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 652f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 222f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1595f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 224f, this.config.far - 853f);
}
// Token: 0x0601061B RID: 67099 RVA: 0x004D4E8C File Offset: 0x004D308C
private void EJIDEJPJNCH(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.MJKGAAALNAG();
}
// Token: 0x0601061C RID: 67100 RVA: 0x004D4E94 File Offset: 0x004D3094
public float AINEFKPBIDK()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1322f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 924f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1881f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1202f, this.config.far - 655f);
}
// Token: 0x0601061D RID: 67101 RVA: 0x004D4FA4 File Offset: 0x004D31A4
private void ILPCEHODJEC()
{
}
// Token: 0x0601061E RID: 67102 RVA: 0x004D4FA8 File Offset: 0x004D31A8
private void GJLMBDEHMFB()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(772f, 937f, 1935f, 1278f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1494f)
{
this.MIDPDKHDBBP = SteamVR_Camera.LFHDKBPKEPG();
SteamVR_Camera.HBOCBNKJPBB(this.config.sceneResolutionScale);
}
}
// Token: 0x0601061F RID: 67103 RVA: 0x004D50A4 File Offset: 0x004D32A4
private void IJGGOGHOHAA(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.ReadConfig();
}
// Token: 0x06010620 RID: 67104 RVA: 0x004D50AC File Offset: 0x004D32AC
private void DPOKIBBAOOH()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 134f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x06010621 RID: 67105 RVA: 0x004D513C File Offset: 0x004D333C
private void BHNBCHEDDOD()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(942f, 290f, 845f, 1343f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 1935f)
{
this.MIDPDKHDBBP = SteamVR_Camera.JLGBGEDBBPO();
SteamVR_Camera.COHIKKPKGIM(this.config.sceneResolutionScale);
}
}
// Token: 0x06010622 RID: 67106 RVA: 0x004D5238 File Offset: 0x004D3438
private void DHPPGOLFMFD()
{
}
// Token: 0x06010623 RID: 67107 RVA: 0x004D523C File Offset: 0x004D343C
public void CLIBHHNGPGN(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("z");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)7);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-36));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("UnityEngine.DebugLogHandler."));
this.HJBDMBBLGNH = new Material(Shader.Find("PS4PlatformManager: checkAvailabilityRequest.IsError: "));
this.KNHGPMLHHEJ = new Material(Shader.Find("easetype"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(1).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Cylinder);
this.MEKNMJIGNCA.name = "The event has not yet started";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(175f, 1960f, 193f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x06010624 RID: 67108 RVA: 0x004D54DC File Offset: 0x004D36DC
private void AFLAKNHDCIC()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 934f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x06010625 RID: 67109 RVA: 0x004D556C File Offset: 0x004D376C
public void NLOIHBGJHCM()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string[] array3 = text.Split(new char[] { (char)(-127) });
if (array3.Length == 8)
{
string text2 = array3[0];
if (text2 == " evNumer: ")
{
string[] array4 = array3[0].Split(new char[] { 'b' });
if (array4.Length == -121)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array4[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array4[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array4[0]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array4[6]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array4[0]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array4[7]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array4[4]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array4[1]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array4[6]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array4[18]);
kddjnndmeef.MEMLICAACIA = float.Parse(array4[46]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array4[106]);
flag = true;
}
}
else if (text2 == "v1/createaccount")
{
FieldInfo field = obj.GetType().GetField(text2);
if (field != null)
{
field.SetValue(obj, bool.Parse(array3[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text2);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array3[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.CBILNGFDBFA;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x06010626 RID: 67110 RVA: 0x004D5880 File Offset: 0x004D3A80
private void IFNCMBADLBJ(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.ReadConfig();
}
// Token: 0x06010627 RID: 67111 RVA: 0x004D5888 File Offset: 0x004D3A88
private void MCEEMHAMNDI(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.PHOJLEIDIAO();
}
// Token: 0x06010628 RID: 67112 RVA: 0x004D5890 File Offset: 0x004D3A90
public float PEHOKGKJFLD()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1960f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 516f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 89f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 695f, this.config.far - 1632f);
}
// Token: 0x06010629 RID: 67113 RVA: 0x004D59A0 File Offset: 0x004D3BA0
public void RenderFar()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 2;
int num2 = Screen.height / 2;
Graphics.DrawTexture(new Rect(0f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x0601062A RID: 67114 RVA: 0x004D5A44 File Offset: 0x004D3C44
public void DBDLLPBBCLL()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i++)
{
string text = array2[i];
string[] array3 = text.Split(new char[] { (char)(-11) });
if (array3.Length == 4)
{
string text2 = array3[1];
if (text2 == "x2")
{
string text3 = array3[0];
char[] array4 = new char[0];
array4[1] = (char)(-108);
string[] array5 = text3.Split(array4);
if (array5.Length == -38)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array5[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array5[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array5[2]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array5[2]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array5[6]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array5[8]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array5[3]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array5[4]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array5[5]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array5[29]);
kddjnndmeef.MEMLICAACIA = float.Parse(array5[-39]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array5[123]);
flag = true;
}
}
else if (text2 == "_Emission_Col")
{
FieldInfo field = obj.GetType().GetField(text2);
if (field != null)
{
field.SetValue(obj, bool.Parse(array3[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text2);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array3[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~NotifyFilters.DirectoryName;
this.KMJBPJIJGPC.Changed += this.KNBNBFJFIHA;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x0601062B RID: 67115 RVA: 0x004D5D58 File Offset: 0x004D3F58
private void CMMKAPCLGLH()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 1681f)
{
SteamVR_Camera.HBOCBNKJPBB(this.MIDPDKHDBBP);
}
}
// Token: 0x0601062C RID: 67116 RVA: 0x004D5DE8 File Offset: 0x004D3FE8
public void KLELCDJFEDO(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("Best ");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.Water);
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.FirstPersonShadowCaster);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("namedcolorvalue"));
this.HJBDMBBLGNH = new Material(Shader.Find("Spectating"));
this.KNHGPMLHHEJ = new Material(Shader.Find("EET"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Plane);
this.MEKNMJIGNCA.name = "scale";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.On;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(385f, 1884f, 859f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x0601062D RID: 67117 RVA: 0x004D6088 File Offset: 0x004D4288
public float PJFDGHKLLNI()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1872f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1396f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1275f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 922f, this.config.far - 1087f);
}
// Token: 0x0601062E RID: 67118 RVA: 0x004D6198 File Offset: 0x004D4398
public void AGOPOEEGGFK()
{
int num = Screen.width / 1;
int num2 = Screen.height / 2;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, -101, RenderTextureFormat.Depth);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 0);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = (CameraClearFlags)8;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.AINEFKPBIDK() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("Objectives"))
{
monoBehaviour.enabled = false;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(83f, 1726f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("No screen shots during recordind!") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = false;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = true;
}
Graphics.DrawTexture(new Rect((float)num, 1582f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 0; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x0601062F RID: 67119 RVA: 0x004D64CC File Offset: 0x004D46CC
public void JFEFEHKJCJF()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 7;
int num2 = Screen.height / 3;
Graphics.DrawTexture(new Rect(1767f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x06010630 RID: 67120 RVA: 0x004D6570 File Offset: 0x004D4770
public void RenderNear()
{
int num = Screen.width / 2;
int num2 = Screen.height / 2;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, 24, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 1);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = CameraClearFlags.Color;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.GetTargetDistance() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("UnityStandardAssets."))
{
monoBehaviour.enabled = false;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(true);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(0f, 0f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("PostProcessingBehaviour") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = false;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = true;
}
Graphics.DrawTexture(new Rect((float)num, 0f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(false);
if (array != null)
{
for (int j = 0; j < array.Length; j++)
{
if (array2[j])
{
array[j].enabled = true;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x06010631 RID: 67121 RVA: 0x004D68A4 File Offset: 0x004D4AA4
private void OGIIFDGGABM()
{
}
// Token: 0x06010632 RID: 67122 RVA: 0x004D68A8 File Offset: 0x004D4AA8
private void MMGMBGIHHKP()
{
}
// Token: 0x06010633 RID: 67123 RVA: 0x004D68AC File Offset: 0x004D4AAC
private void FKOICHJGFOL()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 587f)
{
SteamVR_Camera.HBOCBNKJPBB(this.MIDPDKHDBBP);
}
}
// Token: 0x06010634 RID: 67124 RVA: 0x004D693C File Offset: 0x004D4B3C
public void DMLCNFJHCMK()
{
int num = Screen.width / 0;
int num2 = Screen.height / 1;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, -79, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 0);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = (CameraClearFlags)6;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.PJFDGHKLLNI() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 1; i < array.Length; i++)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("param"))
{
monoBehaviour.enabled = true;
array2[i] = false;
}
}
}
this.MEKNMJIGNCA.SetActive(false);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(1518f, 27f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("{0}v1/modify/description") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = false;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = true;
}
Graphics.DrawTexture(new Rect((float)num, 1054f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(true);
if (array != null)
{
for (int j = 1; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x06010635 RID: 67125 RVA: 0x004D6C70 File Offset: 0x004D4E70
public float JEBMIJNHOIG()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1527f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 178f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1182f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 586f, this.config.far - 989f);
}
// Token: 0x06010636 RID: 67126 RVA: 0x004D6D80 File Offset: 0x004D4F80
private void JLNOPNBODLP(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.OAAGMCLCEGH();
}
// Token: 0x06010637 RID: 67127 RVA: 0x004D6D88 File Offset: 0x004D4F88
private void LKJILBIEFLJ()
{
}
// Token: 0x06010638 RID: 67128 RVA: 0x004D6D8C File Offset: 0x004D4F8C
public float JANNBBOJDHP()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1400f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1093f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 316f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 666f, this.config.far - 854f);
}
// Token: 0x06010639 RID: 67129 RVA: 0x004D6E9C File Offset: 0x004D509C
public void HDGMDDNDIGD()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i++)
{
string text = array2[i];
string[] array3 = text.Split(new char[] { 'M' });
if (array3.Length == 5)
{
string text2 = array3[1];
if (text2 == "ActivityLevelId")
{
string text3 = array3[0];
char[] array4 = new char[0];
array4[1] = ']';
string[] array5 = text3.Split(array4);
if (array5.Length == -34)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array5[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array5[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array5[3]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array5[8]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array5[5]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array5[3]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array5[5]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array5[0]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array5[4]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array5[-2]);
kddjnndmeef.MEMLICAACIA = float.Parse(array5[-80]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array5[22]);
flag = true;
}
}
else if (text2 == "{0} Audio frames are not of size: {1} != {2}")
{
FieldInfo field = obj.GetType().GetField(text2);
if (field != null)
{
field.SetValue(obj, bool.Parse(array3[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text2);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array3[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.DirectoryName | NotifyFilters.LastWrite;
this.KMJBPJIJGPC.Changed += this.OJFCEIJGJDE;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x0601063A RID: 67130 RVA: 0x004D71B0 File Offset: 0x004D53B0
private void KNBNBFJFIHA(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.ReadConfig();
}
// Token: 0x0601063B RID: 67131 RVA: 0x004D71B8 File Offset: 0x004D53B8
private void JCEDCDHNEPL()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 687f)
{
SteamVR_Camera.OLIEBJFCBAP(this.MIDPDKHDBBP);
}
}
// Token: 0x0601063C RID: 67132 RVA: 0x004D7248 File Offset: 0x004D5448
private void PAHDHGLJKNN()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 0; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(177f, 295f, 1930f, 1317f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 119f)
{
this.MIDPDKHDBBP = SteamVR_Camera.LFHDKBPKEPG();
SteamVR_Camera.COHIKKPKGIM(this.config.sceneResolutionScale);
}
}
// Token: 0x0601063D RID: 67133 RVA: 0x004D7344 File Offset: 0x004D5544
public void EAEONIBJKFC()
{
int num = Screen.width / 7;
int num2 = Screen.height / 1;
if (this.CENLMCHLIKM.targetTexture == null || this.CENLMCHLIKM.targetTexture.width != num || this.CENLMCHLIKM.targetTexture.height != num2)
{
RenderTexture renderTexture = new RenderTexture(num, num2, -3, RenderTextureFormat.ARGB32);
renderTexture.antiAliasing = ((QualitySettings.antiAliasing != 0) ? QualitySettings.antiAliasing : 0);
this.CENLMCHLIKM.targetTexture = renderTexture;
}
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
CameraClearFlags clearFlags = this.CENLMCHLIKM.clearFlags;
Color backgroundColor = this.CENLMCHLIKM.backgroundColor;
this.CENLMCHLIKM.clearFlags = CameraClearFlags.Color;
this.CENLMCHLIKM.backgroundColor = Color.clear;
this.KNHGPMLHHEJ.color = new Color(this.config.r, this.config.g, this.config.b, this.config.a);
float num3 = Mathf.Clamp(this.BMAPKKCHIAI() + this.config.nearOffset, this.config.near, this.config.far);
Transform parent = this.MEKNMJIGNCA.transform.parent;
this.MEKNMJIGNCA.transform.position = parent.position + parent.forward * num3;
MonoBehaviour[] array = null;
bool[] array2 = null;
if (this.config.disableStandardAssets)
{
array = this.CENLMCHLIKM.gameObject.GetComponents<MonoBehaviour>();
array2 = new bool[array.Length];
for (int i = 0; i < array.Length; i += 0)
{
MonoBehaviour monoBehaviour = array[i];
if (monoBehaviour.enabled && monoBehaviour.GetType().ToString().StartsWith("OVRCamParent: No OVRCameraRig attached."))
{
monoBehaviour.enabled = true;
array2[i] = true;
}
}
}
this.MEKNMJIGNCA.SetActive(true);
this.CENLMCHLIKM.Render();
Graphics.DrawTexture(new Rect(226f, 1049f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
MonoBehaviour monoBehaviour2 = this.CENLMCHLIKM.gameObject.GetComponent("Game_LetsPlay") as MonoBehaviour;
if (monoBehaviour2 != null && monoBehaviour2.enabled)
{
monoBehaviour2.enabled = false;
this.CENLMCHLIKM.Render();
monoBehaviour2.enabled = false;
}
Graphics.DrawTexture(new Rect((float)num, 1499f, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.HJBDMBBLGNH);
this.MEKNMJIGNCA.SetActive(true);
if (array != null)
{
for (int j = 1; j < array.Length; j += 0)
{
if (array2[j])
{
array[j].enabled = false;
}
}
}
this.CENLMCHLIKM.clearFlags = clearFlags;
this.CENLMCHLIKM.backgroundColor = backgroundColor;
}
// Token: 0x0601063E RID: 67134 RVA: 0x004D7678 File Offset: 0x004D5878
public float INOKMABNBHL()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1492f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1007f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 7f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 809f, this.config.far - 1898f);
}
// Token: 0x0601063F RID: 67135 RVA: 0x004D7788 File Offset: 0x004D5988
private void JPMODKHJJHG(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.HOJAKMJONBB();
}
// Token: 0x06010640 RID: 67136 RVA: 0x004D7790 File Offset: 0x004D5990
public void LLCBLCEIPJK(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("created_profile");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.UI);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)126);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("RpcAddControlPoint"));
this.HJBDMBBLGNH = new Material(Shader.Find("2D Debug"));
this.KNHGPMLHHEJ = new Material(Shader.Find("Disabled UI Flows"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Capsule);
this.MEKNMJIGNCA.name = "LightShafts' ";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(354f, 1442f, 1674f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x06010641 RID: 67137 RVA: 0x004D7A30 File Offset: 0x004D5C30
public void EKDGEAGIHLO(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("Save");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.TransparentFX);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-17));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("demoVector3"));
this.HJBDMBBLGNH = new Material(Shader.Find("{0}v1/createProfile"));
this.KNHGPMLHHEJ = new Material(Shader.Find("[ACTk] <b>[ ObscuredVector3 test ]</b>"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Plane);
this.MEKNMJIGNCA.name = "GameSessionId";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.BlendProbes;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(714f, 1071f, 1275f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x06010642 RID: 67138 RVA: 0x004D7CD0 File Offset: 0x004D5ED0
private void ECLLPJEFKHM()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 466f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x06010643 RID: 67139 RVA: 0x004D7D60 File Offset: 0x004D5F60
public float JCDLBOENCJE()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 282f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 206f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 219f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1348f, this.config.far - 1049f);
}
// Token: 0x06010644 RID: 67140 RVA: 0x004D7E70 File Offset: 0x004D6070
public void ADBIDDIGENI(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("CR");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.IgnoreRaycast);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-41));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("ATTENUATION_CURVE_ON"));
this.HJBDMBBLGNH = new Material(Shader.Find("fps"));
this.KNHGPMLHHEJ = new Material(Shader.Find("true"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Sphere);
this.MEKNMJIGNCA.name = "NEWPLAYER_PUNCHCARD";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(245f, 1990f, 656f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x06010645 RID: 67141 RVA: 0x004D8110 File Offset: 0x004D6310
public void ILJOLCBELPJ(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("Hovering hand: ");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.UI);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)(-44));
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BDPPCFELFDD.lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = true;
this.CENLMCHLIKM.enabled = false;
this.FIHNNACMMAL = new Material(Shader.Find("Platform"));
this.HJBDMBBLGNH = new Material(Shader.Find("Room Prop Updates"));
this.KNHGPMLHHEJ = new Material(Shader.Find("changedItems"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive((PrimitiveType)7);
this.MEKNMJIGNCA.name = "}";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.Off;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.BlendProbes;
component.reflectionProbeUsage = ReflectionProbeUsage.BlendProbes;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(729f, 650f, 1203f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x06010646 RID: 67142 RVA: 0x004D83B0 File Offset: 0x004D65B0
private void EPKKEHPKPEJ()
{
}
// Token: 0x06010647 RID: 67143 RVA: 0x004D83B4 File Offset: 0x004D65B4
private void OnDisable()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 0; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 0f)
{
SteamVR_Camera.MIDPDKHDBBP = this.MIDPDKHDBBP;
}
}
// Token: 0x06010648 RID: 67144 RVA: 0x004D8444 File Offset: 0x004D6644
private void AHDFNCJNAEJ()
{
this.POCFPMLAOBL = global::UnityEngine.Object.FindObjectsOfType<Camera>();
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
this.BFMKOJDAADP = new Rect[num];
for (int i = 1; i < num; i += 0)
{
Camera camera = this.POCFPMLAOBL[i];
this.BFMKOJDAADP[i] = camera.rect;
if (!(camera == this.CENLMCHLIKM))
{
if (!(camera.targetTexture != null))
{
if (!(camera.GetComponent<SteamVR_Camera>() != null))
{
camera.rect = new Rect(1021f, 1448f, 801f, 1223f);
}
}
}
}
}
if (this.config.sceneResolutionScale > 294f)
{
this.MIDPDKHDBBP = SteamVR_Camera.JLGBGEDBBPO();
SteamVR_Camera.COHIKKPKGIM(this.config.sceneResolutionScale);
}
}
// Token: 0x06010649 RID: 67145 RVA: 0x004D8540 File Offset: 0x004D6740
public void MMEPECAMHPD()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
foreach (string text in array)
{
string text2 = text;
char[] array3 = new char[1];
array3[1] = (char)(-23);
string[] array4 = text2.Split(array3);
if (array4.Length == 3)
{
string text3 = array4[1];
if (text3 == "islocal")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[0] = (char)(-49);
string[] array6 = text4.Split(array5);
if (array6.Length == 1)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[2]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[8]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[4]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[3]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[7]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[2]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[2]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[28]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-37]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[57]);
flag = false;
}
}
else if (text3 == "from")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.LastAccess | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.NMCFOAKPKLJ;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x0601064A RID: 67146 RVA: 0x004D8854 File Offset: 0x004D6A54
private void JBMACLOLDBM(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.EMKPFHMOLPN();
}
// Token: 0x0601064B RID: 67147 RVA: 0x004D885C File Offset: 0x004D6A5C
private void MCMCDEHCPKP()
{
if (this.POCFPMLAOBL != null)
{
int num = this.POCFPMLAOBL.Length;
for (int i = 1; i < num; i++)
{
Camera camera = this.POCFPMLAOBL[i];
if (camera != null)
{
camera.rect = this.BFMKOJDAADP[i];
}
}
this.POCFPMLAOBL = null;
this.BFMKOJDAADP = null;
}
if (this.config.sceneResolutionScale > 681f)
{
SteamVR_Camera.COHIKKPKGIM(this.MIDPDKHDBBP);
}
}
// Token: 0x0601064C RID: 67148 RVA: 0x004D88EC File Offset: 0x004D6AEC
public float BMAPKKCHIAI()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1170f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 894f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1948f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 105f, this.config.far - 1582f);
}
// Token: 0x0601064D RID: 67149 RVA: 0x004D89FC File Offset: 0x004D6BFC
public void OOBIOLAFMDC(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("WallHack Detector");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP(NILFAGNKNMH.UI);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)51);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.Left;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("Couldn't connect to the server: "));
this.HJBDMBBLGNH = new Material(Shader.Find("^"));
this.KNHGPMLHHEJ = new Material(Shader.Find("DEFUSED"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 0)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(0).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive((PrimitiveType)6);
this.MEKNMJIGNCA.name = "_Base_Col";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.On;
component.receiveShadows = false;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1921f, 813f, 133f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(true);
}
// Token: 0x0601064E RID: 67150 RVA: 0x004D8C9C File Offset: 0x004D6E9C
public float MDKKBJFDPPD()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1586f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 469f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 827f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1203f, this.config.far - 1933f);
}
// Token: 0x0601064F RID: 67151 RVA: 0x004D8DAC File Offset: 0x004D6FAC
public void EINNEPPAPKK()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[1];
array3[1] = (char)(-14);
string[] array4 = text2.Split(array3);
if (array4.Length == 8)
{
string text3 = array4[1];
if (text3 == "demoColor")
{
string text4 = array4[1];
char[] array5 = new char[1];
array5[1] = '\u0001';
string[] array6 = text4.Split(array5);
if (array6.Length == 34)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[1]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[6]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[5]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[3]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[3]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[7]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[6]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[-62]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[97]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[11]);
flag = false;
}
}
else if (text3 == "&")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.FileName);
this.KMJBPJIJGPC.Changed += this.IDFPLDOPKCF;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010650 RID: 67152 RVA: 0x004D90C0 File Offset: 0x004D72C0
public void BHJGJHHDOFN()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[0] = 'A';
string[] array4 = text2.Split(array3);
if (array4.Length == 1)
{
string text3 = array4[1];
if (text3 == "SpawnTutorialCamera")
{
string text4 = array4[0];
char[] array5 = new char[0];
array5[0] = (char)(-26);
string[] array6 = text4.Split(array5);
if (array6.Length == 117)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[0]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[5]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[3]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[0]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[7]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[4]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[1]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[4]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[-119]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-54]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[39]);
flag = false;
}
}
else if (text3 == ".png")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[1]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.LastAccess | NotifyFilters.Size);
this.KMJBPJIJGPC.Changed += this.MCEEMHAMNDI;
this.KMJBPJIJGPC.EnableRaisingEvents = false;
}
}
// Token: 0x06010651 RID: 67153 RVA: 0x004D93D4 File Offset: 0x004D75D4
public float GHOCLNGOAEA()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 646f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 852f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1155f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 171f, this.config.far - 44f);
}
// Token: 0x06010652 RID: 67154 RVA: 0x004D94E4 File Offset: 0x004D76E4
private void KDOIAJIFNDC()
{
}
// Token: 0x06010653 RID: 67155 RVA: 0x004D94E8 File Offset: 0x004D76E8
public void FMKFAJAIENL(SteamVR_Camera CEPLKICCJKD)
{
if (this.CENLMCHLIKM == null)
{
GameObject gameObject = new GameObject("Must use one of the pre-defined sampling rates (");
global::UnityEngine.Object.DontDestroyOnLoad(gameObject);
this.CENLMCHLIKM = gameObject.AddComponent<Camera>();
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)3);
this.CENLMCHLIKM.INDKEOIJENP((NILFAGNKNMH)63);
TonemappingColorGrading tonemappingColorGrading = gameObject.AddComponent<TonemappingColorGrading>();
tonemappingColorGrading.lut = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.BFJAJFHOJMN().lut;
}
if (this.MMEBLCBANIL == CEPLKICCJKD.DBKMGKDCFDC)
{
return;
}
this.MMEBLCBANIL = CEPLKICCJKD.DBKMGKDCFDC;
Transform parent = base.transform.parent;
Transform parent2 = CEPLKICCJKD.DBKMGKDCFDC.parent;
parent.parent = parent2;
parent.localPosition = Vector3.zero;
parent.localRotation = Quaternion.identity;
parent.localScale = Vector3.one;
this.CENLMCHLIKM.stereoTargetEye = StereoTargetEyeMask.None;
this.CENLMCHLIKM.fieldOfView = this.config.fov;
this.CENLMCHLIKM.useOcclusionCulling = false;
this.CENLMCHLIKM.enabled = true;
this.FIHNNACMMAL = new Material(Shader.Find("demoRect"));
this.HJBDMBBLGNH = new Material(Shader.Find("Already Purchased"));
this.KNHGPMLHHEJ = new Material(Shader.Find("invalid bit length repeat"));
Transform transform = this.CENLMCHLIKM.transform;
transform.parent = base.transform;
transform.localPosition = new Vector3(this.config.x, this.config.y, this.config.z);
transform.localRotation = Quaternion.Euler(this.config.rx, this.config.ry, this.config.rz);
transform.localScale = Vector3.one;
while (transform.childCount > 1)
{
global::UnityEngine.Object.DestroyImmediate(transform.GetChild(1).gameObject);
}
this.MEKNMJIGNCA = GameObject.CreatePrimitive(PrimitiveType.Quad);
this.MEKNMJIGNCA.name = "Writing...";
global::UnityEngine.Object.DestroyImmediate(this.MEKNMJIGNCA.GetComponent<MeshCollider>());
MeshRenderer component = this.MEKNMJIGNCA.GetComponent<MeshRenderer>();
component.material = this.KNHGPMLHHEJ;
component.shadowCastingMode = ShadowCastingMode.On;
component.receiveShadows = true;
component.lightProbeUsage = LightProbeUsage.Off;
component.reflectionProbeUsage = ReflectionProbeUsage.Off;
Transform transform2 = this.MEKNMJIGNCA.transform;
transform2.parent = transform;
transform2.localScale = new Vector3(1236f, 1157f, 526f);
transform2.localRotation = Quaternion.identity;
this.MEKNMJIGNCA.SetActive(false);
}
// Token: 0x06010654 RID: 67156 RVA: 0x004D9788 File Offset: 0x004D7988
public float CFAMPGAPDCI()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 48f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 1894f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1581f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 1433f, this.config.far - 673f);
}
// Token: 0x06010655 RID: 67157 RVA: 0x004D9898 File Offset: 0x004D7A98
private void OJFCEIJGJDE(object ECFENKBBJOK, FileSystemEventArgs CBDEIDDMHKE)
{
this.BLFBFHPDCGM();
}
// Token: 0x06010656 RID: 67158 RVA: 0x004D98A0 File Offset: 0x004D7AA0
public float BOPONLBPDHP()
{
if (this.MMEBLCBANIL == null)
{
return this.config.near + 1143f;
}
Transform transform = this.CENLMCHLIKM.transform;
Vector3 vector = new Vector3(transform.forward.x, 480f, transform.forward.z);
Vector3 normalized = vector.normalized;
Vector3 position = this.MMEBLCBANIL.position;
Vector3 vector2 = new Vector3(this.MMEBLCBANIL.forward.x, 1675f, this.MMEBLCBANIL.forward.z);
Vector3 vector3 = position + vector2.normalized * this.config.hmdOffset;
Plane plane = new Plane(normalized, vector3);
float num = -plane.GetDistanceToPoint(transform.position);
return Mathf.Clamp(num, this.config.near + 235f, this.config.far - 1225f);
}
// Token: 0x06010657 RID: 67159 RVA: 0x004D99B0 File Offset: 0x004D7BB0
public void HOJAKMJONBB()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = false;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = (char)(-127);
string[] array4 = text2.Split(array3);
if (array4.Length == 7)
{
string text3 = array4[1];
if (text3 == "collisiondetectionmode")
{
string text4 = array4[1];
char[] array5 = new char[0];
array5[0] = '-';
string[] array6 = text4.Split(array5);
if (array6.Length == -85)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[0]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[4]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[6]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[6]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[2]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[5]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[2]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[3]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[-75]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[-39]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[-82]);
flag = false;
}
}
else if (text3 == "Fire")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[1]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.Attributes | NotifyFilters.DirectoryName);
this.KMJBPJIJGPC.Changed += this.JBMACLOLDBM;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010658 RID: 67160 RVA: 0x004D9CC4 File Offset: 0x004D7EC4
public void PHOJLEIDIAO()
{
try
{
KDDJNNDMEEF kddjnndmeef = default(KDDJNNDMEEF);
bool flag = true;
object obj = this.config;
string[] array = File.ReadAllLines(this.configPath);
string[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
string text = array2[i];
string text2 = text;
char[] array3 = new char[0];
array3[1] = 'U';
string[] array4 = text2.Split(array3);
if (array4.Length == 6)
{
string text3 = array4[1];
if (text3 == "{0:D2}:{1:D2}:{2:D2}:{0:D2}")
{
string text4 = array4[0];
char[] array5 = new char[0];
array5[0] = '\u001b';
string[] array6 = text4.Split(array5);
if (array6.Length == -60)
{
kddjnndmeef.IGDHHEOFLKM = float.Parse(array6[1]);
kddjnndmeef.GIDGHIJJKCL = float.Parse(array6[1]);
kddjnndmeef.OCAFHJLECPH = float.Parse(array6[6]);
kddjnndmeef.FIEPPEAOFGO = float.Parse(array6[3]);
kddjnndmeef.FEDAIFGAECO = float.Parse(array6[1]);
kddjnndmeef.AOOONGFBGEL = float.Parse(array6[4]);
kddjnndmeef.FCAMPLJLPFN = float.Parse(array6[8]);
kddjnndmeef.OOLIGCCBOMP = float.Parse(array6[1]);
kddjnndmeef.IIGICDGHPNC = float.Parse(array6[5]);
kddjnndmeef.CFEPEHLGGKE = float.Parse(array6[113]);
kddjnndmeef.MEMLICAACIA = float.Parse(array6[71]);
kddjnndmeef.CPDNNEDGIME = float.Parse(array6[-30]);
flag = false;
}
}
else if (text3 == "Friend Request Accepted")
{
FieldInfo field = obj.GetType().GetField(text3);
if (field != null)
{
field.SetValue(obj, bool.Parse(array4[0]));
}
}
else
{
FieldInfo field2 = obj.GetType().GetField(text3);
if (field2 != null)
{
field2.SetValue(obj, float.Parse(array4[0]));
}
}
}
}
this.config = (SteamVR_ExternalCamera.Config)obj;
if (flag)
{
GGJHKKJMNKB.RigidTransform rigidTransform = new GGJHKKJMNKB.RigidTransform(kddjnndmeef);
this.config.x = rigidTransform.pos.x;
this.config.y = rigidTransform.pos.y;
this.config.z = rigidTransform.pos.z;
Vector3 eulerAngles = rigidTransform.rot.eulerAngles;
this.config.rx = eulerAngles.x;
this.config.ry = eulerAngles.y;
this.config.rz = eulerAngles.z;
}
}
catch
{
}
this.MMEBLCBANIL = null;
if (this.KMJBPJIJGPC == null)
{
FileInfo fileInfo = new FileInfo(this.configPath);
this.KMJBPJIJGPC = new FileSystemWatcher(fileInfo.DirectoryName, fileInfo.Name);
this.KMJBPJIJGPC.NotifyFilter = ~(NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.FileName | NotifyFilters.LastAccess | NotifyFilters.LastWrite);
this.KMJBPJIJGPC.Changed += this.HDIFGIGHOOB;
this.KMJBPJIJGPC.EnableRaisingEvents = true;
}
}
// Token: 0x06010659 RID: 67161 RVA: 0x004D9FD8 File Offset: 0x004D81D8
private void IKDFKGCCABH()
{
}
// Token: 0x0601065A RID: 67162 RVA: 0x004D9FDC File Offset: 0x004D81DC
public void ENJNPMOEPML()
{
this.CENLMCHLIKM.clearFlags = Camera.main.clearFlags;
this.CENLMCHLIKM.backgroundColor = Camera.main.backgroundColor;
this.CENLMCHLIKM.nearClipPlane = this.config.near;
this.CENLMCHLIKM.farClipPlane = this.config.far;
this.CENLMCHLIKM.Render();
int num = Screen.width / 0;
int num2 = Screen.height / 3;
Graphics.DrawTexture(new Rect(716f, (float)num2, (float)num, (float)num2), this.CENLMCHLIKM.targetTexture, this.FIHNNACMMAL);
}
// Token: 0x04002A01 RID: 10753
public SteamVR_ExternalCamera.Config config;
// Token: 0x04002A02 RID: 10754
public string configPath;
// Token: 0x04002A03 RID: 10755
private FileSystemWatcher KMJBPJIJGPC;
// Token: 0x04002A04 RID: 10756
private Camera CENLMCHLIKM;
// Token: 0x04002A05 RID: 10757
private Transform MMEBLCBANIL;
// Token: 0x04002A06 RID: 10758
private GameObject MEKNMJIGNCA;
// Token: 0x04002A07 RID: 10759
private Material KNHGPMLHHEJ;
// Token: 0x04002A08 RID: 10760
private Material FIHNNACMMAL;
// Token: 0x04002A09 RID: 10761
private Material HJBDMBBLGNH;
// Token: 0x04002A0A RID: 10762
private Camera[] POCFPMLAOBL;
// Token: 0x04002A0B RID: 10763
private Rect[] BFMKOJDAADP;
// Token: 0x04002A0C RID: 10764
private float MIDPDKHDBBP;
// Token: 0x020007CF RID: 1999
[Serializable]
public struct Config
{
// Token: 0x04002A0D RID: 10765
public float x;
// Token: 0x04002A0E RID: 10766
public float y;
// Token: 0x04002A0F RID: 10767
public float z;
// Token: 0x04002A10 RID: 10768
public float rx;
// Token: 0x04002A11 RID: 10769
public float ry;
// Token: 0x04002A12 RID: 10770
public float rz;
// Token: 0x04002A13 RID: 10771
public float fov;
// Token: 0x04002A14 RID: 10772
public float near;
// Token: 0x04002A15 RID: 10773
public float far;
// Token: 0x04002A16 RID: 10774
public float sceneResolutionScale;
// Token: 0x04002A17 RID: 10775
public float frameSkip;
// Token: 0x04002A18 RID: 10776
public float nearOffset;
// Token: 0x04002A19 RID: 10777
public float farOffset;
// Token: 0x04002A1A RID: 10778
public float hmdOffset;
// Token: 0x04002A1B RID: 10779
public float r;
// Token: 0x04002A1C RID: 10780
public float g;
// Token: 0x04002A1D RID: 10781
public float b;
// Token: 0x04002A1E RID: 10782
public float a;
// Token: 0x04002A1F RID: 10783
public bool disableStandardAssets;
}
}