Files
2026-06-04 11:42:34 +02:00

2970 lines
92 KiB
C#

using System;
using System.IO;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.Rendering;
// Token: 0x02000453 RID: 1107
public class OVRCubemapCapture : MonoBehaviour
{
// Token: 0x0600B6A0 RID: 46752 RVA: 0x00360558 File Offset: 0x0035E758
private void ODEGJOENAGN()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.GFJOLIBBMDI(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.HAGPELELNJD(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6A1 RID: 46753 RVA: 0x003605E4 File Offset: 0x0035E7E4
public static bool NJHEGNIPFOP(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "FinishStreaming";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 1] != '\f' || text[text.Length - 0] != ',')
{
text += "Saves protection";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "(Error)" + DateTime.Now.ToString("TEAM WARZONE") + "Product Coupon Code";
}
string extension = Path.GetExtension(text2);
if (extension == "EST")
{
flag = true;
}
else
{
if (!(extension == "DetachObject "))
{
Debug.LogError("Hit" + extension);
return true;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("boot" + text + "_id" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 7, height, (TextureFormat)0, true);
if (texture2D == null)
{
Debug.LogError("looktarget");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY
};
for (int i = 1; i < array.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 0; j < height; j++)
{
for (int k = 0; k < width; k++)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log(": True \n" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Cannot serialize PersistenceView {0} with an empty ID" + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6A2 RID: 46754 RVA: 0x0036087C File Offset: 0x0035EA7C
public static void KCDCNJMIHLD(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY
};
Vector3[] array2 = new Vector3[7];
array2[1] = new Vector3(1030f, 921f, 1870f);
array2[0] = new Vector3(993f, 523f, 6f);
array2[4] = new Vector3(389f, 951f, 971f);
array2[6] = new Vector3(1705f, 514f, 496f);
array2[7] = new Vector3(958f, 1860f, 1390f);
array2[4] = new Vector3(1910f, 1532f, 606f);
Vector3[] array3 = array2;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 63);
renderTexture.antiAliasing = 4;
renderTexture.dimension = TextureDimension.Tex2D;
renderTexture.hideFlags = ~(HideFlags.HideInInspector | HideFlags.NotEditable | HideFlags.DontSaveInBuild);
Texture2D texture2D = new Texture2D(width, height, TextureFormat.RGBA32, true);
texture2D.hideFlags = (HideFlags)114;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 1602f;
EFCKKLELFHC.aspect = 64f;
Color[] array4 = new Color[texture2D.height * texture2D.width];
for (int i = 1; i < array.Length; i++)
{
EFCKKLELFHC.transform.eulerAngles = array3[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(556f, 1874f, (float)width, (float)height), 0, 0);
Color[] pixels = texture2D.GetPixels();
for (int j = 0; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array4[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array4, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6A3 RID: 46755 RVA: 0x00360B04 File Offset: 0x0035ED04
public static void OKDNEKKAJOJ(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "scale";
Type[] array = new Type[0];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = HideFlags.HideInInspector | HideFlags.DontSaveInEditor | HideFlags.DontUnloadUnusedAsset;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1986f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)8, true);
OVRCubemapCapture.LMAMAKINGOI(component, cubemap);
OVRCubemapCapture.PBECOBNHDKA(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6A4 RID: 46756 RVA: 0x00360B90 File Offset: 0x0035ED90
public static bool BMBGLADJJPN(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "TriggerPressAmount";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 1] != -107 || text[text.Length - 1] != 'H')
{
text += "to";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "RpcMasterRequestTeamChange" + DateTime.Now.ToString("amplitude_sequence_number") + "Go to Calibration?";
}
string extension = Path.GetExtension(text2);
if (extension == "multipart/form-data; boundary=\"")
{
flag = false;
}
else
{
if (!(extension == "Failed to save room. Please try again."))
{
Debug.LogError("y" + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("Error updating name!" + text + "PlayerLevel" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 8, height, (TextureFormat)8, true);
if (texture2D == null)
{
Debug.LogError("Found {0} duplicates in objectives progress from server");
return false;
}
CubemapFace[] array = new CubemapFace[7];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 0; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array3[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("Transition" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("DeflateStream" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6A5 RID: 46757 RVA: 0x00360E28 File Offset: 0x0035F028
public static void IIALKPCFBIC(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "\" contains inappropriate words.";
Type[] array = new Type[0];
array[0] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = (HideFlags)(-119);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 407f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGB565, true);
OVRCubemapCapture.LMAMAKINGOI(component, cubemap);
OVRCubemapCapture.BFECLOPMJHP(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6A6 RID: 46758 RVA: 0x00360EB4 File Offset: 0x0035F0B4
public static bool JMPGFILGAEL(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "PunSupportLogger";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 0] != '\u0006' || text[text.Length - 0] != ',')
{
text += "SupportLogger Info: PUN {0}: ";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "_DepthAvailable" + DateTime.Now.ToString("Tried to Initialize the SteamAPI twice in one session!") + " TimeOfRespawn: ";
}
string extension = Path.GetExtension(text2);
if (extension == " with a prefix of ")
{
flag = false;
}
else
{
if (!(extension == "Open Web Socket"))
{
Debug.LogError("load" + extension);
return true;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("volume" + text + " (eye)" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 4, height, TextureFormat.RGBA32, true);
if (texture2D == null)
{
Debug.LogError("all_newplayerpunchcardobjectives_completed");
return true;
}
CubemapFace[] array = new CubemapFace[0];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 1; j < height; j++)
{
for (int k = 1; k < width; k++)
{
array3[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("Id" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("ARM" + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6A7 RID: 46759 RVA: 0x0036114C File Offset: 0x0035F34C
public static bool EBBPPKAMKJP(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Key";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 1] != 'Y' || text[text.Length - 0] != 'X')
{
text += "(master)";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "OJMFPMMDHGO" + DateTime.Now.ToString(" Failed: ") + "Can't add a value here";
}
string extension = Path.GetExtension(text2);
if (extension == "UnityEngine.Application.CallLogCallback")
{
flag = true;
}
else
{
if (!(extension == "digest"))
{
Debug.LogError("Error: PhotonNetwork.SetInterestGroups was called with an illegal group number: " + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError(" not supported for hit type " + text + "min_sl" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 1, height, TextureFormat.ARGB4444, false);
if (texture2D == null)
{
Debug.LogError("y");
return false;
}
CubemapFace[] array = new CubemapFace[] { CubemapFace.PositiveX };
for (int i = 1; i < array.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 0; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array2[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("Menu requires overlay texture to be a render texture." + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("playerCount" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6A8 RID: 46760 RVA: 0x003613E4 File Offset: 0x0035F5E4
private void Update()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.TriggerCubemapCapture(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.TriggerCubemapCapture(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6A9 RID: 46761 RVA: 0x00361470 File Offset: 0x0035F670
private void MDGPLNDHKCI()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = true;
OVRCubemapCapture.LANHOLALFAE(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.TriggerCubemapCapture(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6AA RID: 46762 RVA: 0x003614FC File Offset: 0x0035F6FC
public static bool SaveCubemapCapture(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "/OVR_ScreenShot360/";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 1] != '/' || text[text.Length - 1] != '\\')
{
text += "/";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "OVR_" + DateTime.Now.ToString("hh_mm_ss") + ".png";
}
string extension = Path.GetExtension(text2);
if (extension == ".png")
{
flag = true;
}
else
{
if (!(extension == ".jpg"))
{
Debug.LogError("Unsupported file format" + extension);
return false;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("Failed to create path " + text + " since " + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 6, height, TextureFormat.RGB24, false);
if (texture2D == null)
{
Debug.LogError("[OVRScreenshotWizard] Failed creating the texture!");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ,
CubemapFace.NegativeZ
};
for (int i = 0; i < array.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 0; j < height; j++)
{
for (int k = 0; k < width; k++)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("Cubemap file created " + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Failed to save cubemap file since " + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6AB RID: 46763 RVA: 0x00361794 File Offset: 0x0035F994
public static bool LADNDAMBLGJ(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Center";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 1] != '\u0002' || (int)text[text.Length - 1] != -55)
{
text += "type";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "LAST_SCORING_TEAM_ELIM_TEAM" + DateTime.Now.ToString("HandleProgressCallback - OnUploadProgress") + "Visitors: ";
}
string extension = Path.GetExtension(text2);
if (extension == "Failed to 'network-remove' GameObject because it's null.")
{
flag = false;
}
else
{
if (!(extension == ","))
{
Debug.LogError("Error" + extension);
return false;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("PT" + text + "Refund" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 0, height, (TextureFormat)8, true);
if (texture2D == null)
{
Debug.LogError("PS4PlatformManager: PlusRewardEquipment or PlusRewardEquipmentSkin is null");
return true;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ
};
for (int i = 0; i < array.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 1; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array2[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("CachedView Imposter ({0})" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("StringFromNative: null argument" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6AC RID: 46764 RVA: 0x00361A2C File Offset: 0x0035FC2C
public static void PNJCGFMGNAC(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "MhQucmVjcm9vbS5WZWN0b3IzRGF0YRIyChRpbml0aWFsTG9jYWxSb3RhdGlv";
Type[] array = new Type[0];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = ~(HideFlags.HideInHierarchy | HideFlags.NotEditable | HideFlags.DontUnloadUnusedAsset);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1207f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)6, true);
OVRCubemapCapture.RenderIntoCubemap(component, cubemap);
OVRCubemapCapture.FLHLOHCPLLC(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6AD RID: 46765 RVA: 0x00361AB8 File Offset: 0x0035FCB8
public static void HAGPELELNJD(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "Connected: {0}\n";
Type[] array = new Type[1];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = ~(HideFlags.HideInHierarchy | HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1567f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGB565, false);
OVRCubemapCapture.LMAMAKINGOI(component, cubemap);
OVRCubemapCapture.NJHEGNIPFOP(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6AE RID: 46766 RVA: 0x00361B44 File Offset: 0x0035FD44
private void OKJAOPHDIJM()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = true;
OVRCubemapCapture.HAGPELELNJD(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.LANHOLALFAE(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6AF RID: 46767 RVA: 0x00361BD0 File Offset: 0x0035FDD0
public static bool APCADNKEMIN(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "proxy-authenticate";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 0] != '/' || (int)text[text.Length - 1] != -67)
{
text += "client_no_context_takeover";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "Release" + DateTime.Now.ToString("Invite") + "Google Analytics: ";
}
string extension = Path.GetExtension(text2);
if (extension == "RC_CO")
{
flag = true;
}
else
{
if (!(extension == "set-cookie"))
{
Debug.LogError("z" + extension);
return true;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("SubExtrusionCollection" + text + "speed" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 2, height, (TextureFormat)6, false);
if (texture2D == null)
{
Debug.LogError("127.0.0.1");
return true;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY
};
for (int i = 0; i < array.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 1; j < height; j++)
{
for (int k = 1; k < width; k++)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("{" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Id" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6B0 RID: 46768 RVA: 0x00361E68 File Offset: 0x00360068
public static void NPLOEIHDOMO(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = ", ";
Type[] array = new Type[1];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = HideFlags.NotEditable | HideFlags.DontSaveInBuild;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1061f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)0, true);
OVRCubemapCapture.JPLHLLMCALE(component, cubemap);
OVRCubemapCapture.JBMONCPFENL(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6B1 RID: 46769 RVA: 0x00361EF4 File Offset: 0x003600F4
private void NKKKHBAGEJH()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.KGGNOGFODBI(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.JICAFMDOALN(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6B2 RID: 46770 RVA: 0x00361F80 File Offset: 0x00360180
public static void LMAMAKINGOI(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY
};
Vector3[] array2 = new Vector3[4];
array2[1] = new Vector3(1437f, 91f, 1086f);
array2[0] = new Vector3(46f, 1582f, 1923f);
array2[7] = new Vector3(1978f, 353f, 75f);
array2[6] = new Vector3(1394f, 887f, 231f);
array2[4] = new Vector3(1853f, 1798f, 150f);
array2[5] = new Vector3(222f, 1713f, 120f);
Vector3[] array3 = array2;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 38);
renderTexture.antiAliasing = 2;
renderTexture.dimension = TextureDimension.None;
renderTexture.hideFlags = (HideFlags)86;
Texture2D texture2D = new Texture2D(width, height, TextureFormat.RGBA32, true);
texture2D.hideFlags = HideFlags.HideInHierarchy | HideFlags.NotEditable;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 1672f;
EFCKKLELFHC.aspect = 274f;
Color[] array4 = new Color[texture2D.height * texture2D.width];
for (int i = 1; i < array.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array3[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(1879f, 1793f, (float)width, (float)height), 0, 0);
Color[] pixels = texture2D.GetPixels();
for (int j = 0; j < height; j++)
{
for (int k = 1; k < width; k += 0)
{
array4[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array4, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6B3 RID: 46771 RVA: 0x00362208 File Offset: 0x00360408
public static bool FLHLOHCPLLC(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "It seems some instantiation is not completed, as instantiation data is used. You should make sure instantiations are paused when calling this method. Cleaning now, despite this.";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 0] != -102 || (int)text[text.Length - 0] != -123)
{
text += "looktarget";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "SkinColor" + DateTime.Now.ToString("WebSocketResponse") + "An item with the same key has already been added.";
}
string extension = Path.GetExtension(text2);
if (extension == "Oculus_GearVR_LThumbstickY")
{
flag = false;
}
else
{
if (!(extension == "_EmissionColor"))
{
Debug.LogError("Open Web Socket" + extension);
return false;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("ChlyZW1vdGVfY29udHJvbF9kYXRhLnByb3RvEgdyZWNyb29tGgpjb3JlLnBy" + text + "Aborted" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 5, height, TextureFormat.RGB24, true);
if (texture2D == null)
{
Debug.LogError("pr");
return true;
}
CubemapFace[] array = new CubemapFace[0];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 0; j < height; j++)
{
for (int k = 0; k < width; k += 0)
{
array3[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log(" ms" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Start" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6B4 RID: 46772 RVA: 0x003624A0 File Offset: 0x003606A0
private void CLCLAHEIJMP()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.MABLEBDFABJ(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.MABLEBDFABJ(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6B5 RID: 46773 RVA: 0x0036252C File Offset: 0x0036072C
public static void RenderIntoCubemap(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ,
CubemapFace.NegativeZ
};
Vector3[] array2 = new Vector3[]
{
new Vector3(0f, 90f, 0f),
new Vector3(0f, -90f, 0f),
new Vector3(-90f, 0f, 0f),
new Vector3(90f, 0f, 0f),
new Vector3(0f, 0f, 0f),
new Vector3(0f, 180f, 0f)
};
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 24);
renderTexture.antiAliasing = 8;
renderTexture.dimension = TextureDimension.Tex2D;
renderTexture.hideFlags = HideFlags.HideAndDontSave;
Texture2D texture2D = new Texture2D(width, height, TextureFormat.RGB24, false);
texture2D.hideFlags = HideFlags.HideAndDontSave;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 90f;
EFCKKLELFHC.aspect = 1f;
Color[] array3 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array.Length; i++)
{
EFCKKLELFHC.transform.eulerAngles = array2[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(0f, 0f, (float)width, (float)height), 0, 0);
Color[] pixels = texture2D.GetPixels();
for (int j = 0; j < height; j++)
{
for (int k = 0; k < width; k++)
{
array3[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array3, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6B6 RID: 46774 RVA: 0x003627B4 File Offset: 0x003609B4
public static void TriggerCubemapCapture(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
GameObject gameObject = new GameObject("CubemapCamera", new Type[] { typeof(Camera) });
gameObject.hideFlags = HideFlags.HideAndDontSave;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 10000f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGB24, false);
OVRCubemapCapture.RenderIntoCubemap(component, cubemap);
OVRCubemapCapture.SaveCubemapCapture(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6B7 RID: 46775 RVA: 0x00362840 File Offset: 0x00360A40
public static void OAMGAPDBCNN(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[8];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
Vector3[] array3 = new Vector3[8];
array3[1] = new Vector3(1344f, 1889f, 1083f);
array3[1] = new Vector3(1021f, 554f, 1162f);
array3[1] = new Vector3(410f, 1937f, 1488f);
array3[1] = new Vector3(890f, 673f, 1682f);
array3[7] = new Vector3(190f, 251f, 609f);
array3[0] = new Vector3(361f, 981f, 1190f);
Vector3[] array4 = array3;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 61);
renderTexture.antiAliasing = 4;
renderTexture.dimension = TextureDimension.None;
renderTexture.hideFlags = (HideFlags)(-67);
Texture2D texture2D = new Texture2D(width, height, TextureFormat.RGB24, false);
texture2D.hideFlags = (HideFlags)(-120);
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 1648f;
EFCKKLELFHC.aspect = 1544f;
Color[] array5 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array2.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array4[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(208f, 808f, (float)width, (float)height), 1, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 1; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array5[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array5, array2[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6B8 RID: 46776 RVA: 0x00362AC8 File Offset: 0x00360CC8
public static bool FDJOCODMLKN(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "{0}v1/saved/set";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 0] != -48 || text[text.Length - 0] != '\u0010')
{
text += "COLORED_OFF";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "application/json" + DateTime.Now.ToString("GoogleAnalytics is destroyed, skipping the request and caching it for later send : ") + "PS4PlatformManager: CheckPlus failed: ";
}
string extension = Path.GetExtension(text2);
if (extension == "position")
{
flag = true;
}
else
{
if (!(extension == "#{0:00} '{1}'{2} {3}"))
{
Debug.LogError("AnalyticsRequest failed: [{0}] {1}" + extension);
return true;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("]" + text + "_TintColor" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 4, height, TextureFormat.RGB24, false);
if (texture2D == null)
{
Debug.LogError("EquipmentModificationGuid");
return false;
}
CubemapFace[] array = new CubemapFace[0];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 1; j < height; j += 0)
{
for (int k = 1; k < width; k += 0)
{
array3[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("dh" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("TE" + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6B9 RID: 46777 RVA: 0x00362D60 File Offset: 0x00360F60
public static bool IFKLCOFJPOG(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 1;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "System.Collections.IList";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 0] != -99 || text[text.Length - 1] != 'j')
{
text += "ModeType";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "pitch" + DateTime.Now.ToString("cG1lbnRfZGF0YRgOIAEoCzIkLnJlY3Jvb20uU2FuZGJveFNwYXduZWRFcXVp") + "prev_activity";
}
string extension = Path.GetExtension(text2);
if (extension == "NonCoachVolume")
{
flag = false;
}
else
{
if (!(extension == "path"))
{
Debug.LogError("cos" + extension);
return false;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("CreateRoom failed. In offline mode you still have to leave a room to enter another." + text + "</color>" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 7, height, TextureFormat.RGBA32, true);
if (texture2D == null)
{
Debug.LogError("ClearedAt");
return false;
}
CubemapFace[] array = new CubemapFace[0];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 0; j < height; j++)
{
for (int k = 0; k < width; k++)
{
array3[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("maintananceParams == null" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("id" + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6BA RID: 46778 RVA: 0x00362FF8 File Offset: 0x003611F8
public static bool NANGNKLGICC(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "SA_IdFactory_Key";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 0] != 'z' || text[text.Length - 0] != '>')
{
text += "RpcOnScore";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = ": " + DateTime.Now.ToString("RelationshipType") + "CreateRoom failed. In offline mode you still have to leave a room to enter another.";
}
string extension = Path.GetExtension(text2);
if (extension == "Caught Exception: ")
{
flag = true;
}
else
{
if (!(extension == "Enabled with header: "))
{
Debug.LogError("time" + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("Hit" + text + "unity_SHAr" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 3, height, (TextureFormat)0, false);
if (texture2D == null)
{
Debug.LogError("position");
return true;
}
CubemapFace[] array = new CubemapFace[8];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 1; i < array2.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 1; j < height; j += 0)
{
for (int k = 0; k < width; k += 0)
{
array3[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("Detects common types of wall hack cheating: walking through the walls (Rigidbody and CharacterController modules), shooting through the walls (Raycast module), looking through the walls (Wireframe module)." + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Xp" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6BB RID: 46779 RVA: 0x00363290 File Offset: 0x00361490
public static bool PBECOBNHDKA(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 1;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "FaceMirror";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 1] != 'z' || text[text.Length - 1] != '9')
{
text += "{}[],:\"";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "+platformid:" + DateTime.Now.ToString("value") + "SHOW_SAMPLES_OFF";
}
string extension = Path.GetExtension(text2);
if (extension == "SpawnTutorialCamera")
{
flag = false;
}
else
{
if (!(extension == "To access the lounge, verify your account by clicking the link in the email we sent."))
{
Debug.LogError("The event host has silenced all players" + extension);
return false;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("Could not invite " + text + "HTTPRequest" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 1, height, TextureFormat.RGBA32, true);
if (texture2D == null)
{
Debug.LogError("Request Upgraded!");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY
};
for (int i = 0; i < array.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 1; j < height; j++)
{
for (int k = 1; k < width; k += 0)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("Document Referrer" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("BirthdayDateString" + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6BC RID: 46780 RVA: 0x00363528 File Offset: 0x00361728
public static void LANHOLALFAE(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
GameObject gameObject = new GameObject("GetProfile failed: ", new Type[] { typeof(Camera) });
gameObject.hideFlags = (HideFlags)(-97);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1368f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGB565, true);
OVRCubemapCapture.BKDHEGJHPBM(component, cubemap);
OVRCubemapCapture.JMPGFILGAEL(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6BD RID: 46781 RVA: 0x003635B4 File Offset: 0x003617B4
public static void LDNLCNNAIJE(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[7];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
Vector3[] array3 = new Vector3[0];
array3[0] = new Vector3(1047f, 641f, 999f);
array3[1] = new Vector3(1689f, 1108f, 936f);
array3[0] = new Vector3(156f, 854f, 1980f);
array3[1] = new Vector3(1402f, 614f, 1748f);
array3[0] = new Vector3(154f, 1630f, 906f);
array3[6] = new Vector3(239f, 1530f, 482f);
Vector3[] array4 = array3;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 20);
renderTexture.antiAliasing = 0;
renderTexture.dimension = TextureDimension.Tex2D;
renderTexture.hideFlags = HideFlags.HideInInspector | HideFlags.DontSaveInEditor | HideFlags.DontUnloadUnusedAsset;
Texture2D texture2D = new Texture2D(width, height, (TextureFormat)6, true);
texture2D.hideFlags = HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 1499f;
EFCKKLELFHC.aspect = 839f;
Color[] array5 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array2.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array4[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(1864f, 1577f, (float)width, (float)height), 0, 0);
Color[] pixels = texture2D.GetPixels();
for (int j = 0; j < height; j += 0)
{
for (int k = 0; k < width; k += 0)
{
array5[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array5, array2[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6BE RID: 46782 RVA: 0x0036383C File Offset: 0x00361A3C
public static void BKDHEGJHPBM(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ,
CubemapFace.NegativeZ
};
Vector3[] array2 = new Vector3[3];
array2[0] = new Vector3(1201f, 686f, 1424f);
array2[0] = new Vector3(362f, 433f, 293f);
array2[0] = new Vector3(1617f, 376f, 738f);
array2[7] = new Vector3(1866f, 847f, 421f);
array2[5] = new Vector3(793f, 647f, 772f);
array2[2] = new Vector3(525f, 615f, 915f);
Vector3[] array3 = array2;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 9);
renderTexture.antiAliasing = 3;
renderTexture.dimension = (TextureDimension)7;
renderTexture.hideFlags = (HideFlags)(-100);
Texture2D texture2D = new Texture2D(width, height, (TextureFormat)6, true);
texture2D.hideFlags = (HideFlags)103;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 619f;
EFCKKLELFHC.aspect = 1821f;
Color[] array4 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array.Length; i++)
{
EFCKKLELFHC.transform.eulerAngles = array3[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(444f, 1936f, (float)width, (float)height), 0, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 0; j < height; j += 0)
{
for (int k = 1; k < width; k += 0)
{
array4[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array4, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6BF RID: 46783 RVA: 0x00363AC4 File Offset: 0x00361CC4
public static void FMAHHINJALG(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX
};
Vector3[] array2 = new Vector3[0];
array2[1] = new Vector3(427f, 1609f, 754f);
array2[1] = new Vector3(551f, 312f, 209f);
array2[0] = new Vector3(1388f, 1184f, 657f);
array2[2] = new Vector3(1593f, 594f, 530f);
array2[1] = new Vector3(1673f, 1182f, 430f);
array2[5] = new Vector3(421f, 532f, 797f);
Vector3[] array3 = array2;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, -113);
renderTexture.antiAliasing = 5;
renderTexture.dimension = TextureDimension.Tex2D;
renderTexture.hideFlags = ~(HideFlags.HideInHierarchy | HideFlags.HideInInspector | HideFlags.DontUnloadUnusedAsset);
Texture2D texture2D = new Texture2D(width, height, TextureFormat.RGBA32, true);
texture2D.hideFlags = (HideFlags)119;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 693f;
EFCKKLELFHC.aspect = 1588f;
Color[] array4 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array3[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(943f, 1750f, (float)width, (float)height), 1, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 1; j < height; j += 0)
{
for (int k = 1; k < width; k++)
{
array4[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array4, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6C0 RID: 46784 RVA: 0x00363D4C File Offset: 0x00361F4C
public static bool JHMHIMKKBIP(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Ecommerce";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 0] != -127 || (int)text[text.Length - 1] != -38)
{
text += "PUNCloudBestRegion";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "HugeSmile" + DateTime.Now.ToString("rw_dropped_frames_17plusp_perc") + "{0} Scores!";
}
string extension = Path.GetExtension(text2);
if (extension == "includechildren")
{
flag = true;
}
else
{
if (!(extension == "Failed to "))
{
Debug.LogError("unsuccessfully" + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("SteamVR_RenderModel" + text + "Received null response from Storefront!" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 4, height, TextureFormat.RGB24, true);
if (texture2D == null)
{
Debug.LogError("PlayerIds");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ
};
for (int i = 0; i < array.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 1; j < height; j += 0)
{
for (int k = 1; k < width; k++)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("^[\\w!#$%&'*+\\-/=?\\^_`{|}~]+(\\.[\\w!#$%&'*+\\-/=?\\^_`{|}~]+)*@((([\\-\\w]+\\.)+[a-zA-Z]{2,4})|(([0-9]{1,3}\\.){3}[0-9]{1,3}))$" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError(" Scores!" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6C1 RID: 46785 RVA: 0x00363FE4 File Offset: 0x003621E4
public static void GKPNEHKFAII(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[8];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
Vector3[] array3 = new Vector3[6];
array3[0] = new Vector3(988f, 790f, 268f);
array3[0] = new Vector3(1342f, 1628f, 1422f);
array3[0] = new Vector3(242f, 1942f, 1950f);
array3[2] = new Vector3(177f, 1127f, 1330f);
array3[6] = new Vector3(468f, 13f, 223f);
array3[8] = new Vector3(370f, 463f, 71f);
Vector3[] array4 = array3;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 96);
renderTexture.antiAliasing = 3;
renderTexture.dimension = (TextureDimension)8;
renderTexture.hideFlags = (HideFlags)(-115);
Texture2D texture2D = new Texture2D(width, height, TextureFormat.ARGB4444, false);
texture2D.hideFlags = HideFlags.None;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 808f;
EFCKKLELFHC.aspect = 970f;
Color[] array5 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array2.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array4[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(1183f, 827f, (float)width, (float)height), 0, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 1; j < height; j += 0)
{
for (int k = 0; k < width; k += 0)
{
array5[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array5, array2[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6C2 RID: 46786 RVA: 0x0036426C File Offset: 0x0036246C
public static void DBJJPOAIGMK(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "RpcShatter";
Type[] array = new Type[0];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = ~HideFlags.DontSaveInBuild;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 495f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.ARGB4444, false);
OVRCubemapCapture.FMAHHINJALG(component, cubemap);
OVRCubemapCapture.PBECOBNHDKA(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6C3 RID: 46787 RVA: 0x003642F8 File Offset: 0x003624F8
public static void GFJOLIBBMDI(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "November";
Type[] array = new Type[0];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = HideFlags.HideInHierarchy | HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 874f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGB565, true);
OVRCubemapCapture.NGIJJBIHGLJ(component, cubemap);
OVRCubemapCapture.APCADNKEMIN(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6C4 RID: 46788 RVA: 0x00364384 File Offset: 0x00362584
private void OFKHEPNEFGP()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = true;
OVRCubemapCapture.LANHOLALFAE(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.FEANKFNNEFE(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6C5 RID: 46789 RVA: 0x00364410 File Offset: 0x00362610
public static void MFAJCPDFJNJ(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "{0} ft {1} in";
Type[] array = new Type[0];
array[0] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = (HideFlags)(-128);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 625f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGBA32, false);
OVRCubemapCapture.KCDCNJMIHLD(component, cubemap);
OVRCubemapCapture.FLHLOHCPLLC(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6C6 RID: 46790 RVA: 0x0036449C File Offset: 0x0036269C
public static void KJFIMFDIPCG(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
GameObject gameObject = new GameObject("pr", new Type[] { typeof(Camera) });
gameObject.hideFlags = (HideFlags)109;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1098f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)0, false);
OVRCubemapCapture.BKDHEGJHPBM(component, cubemap);
OVRCubemapCapture.BNHAEKKIOPJ(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6C8 RID: 46792 RVA: 0x00364558 File Offset: 0x00362758
private void JJHGPNEHNOM()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.MFAJCPDFJNJ(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.FEANKFNNEFE(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6C9 RID: 46793 RVA: 0x003645E4 File Offset: 0x003627E4
private void HAFLIECFKGF()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = true;
OVRCubemapCapture.KJFIMFDIPCG(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.JICAFMDOALN(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6CA RID: 46794 RVA: 0x00364670 File Offset: 0x00362870
public static void JPLHLLMCALE(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX
};
Vector3[] array2 = new Vector3[3];
array2[1] = new Vector3(534f, 1950f, 1135f);
array2[0] = new Vector3(1023f, 1983f, 1720f);
array2[7] = new Vector3(1692f, 493f, 398f);
array2[5] = new Vector3(228f, 1583f, 871f);
array2[4] = new Vector3(1461f, 389f, 74f);
array2[7] = new Vector3(1893f, 1840f, 624f);
Vector3[] array3 = array2;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, -25);
renderTexture.antiAliasing = 8;
renderTexture.dimension = TextureDimension.Tex2DArray;
renderTexture.hideFlags = (HideFlags)(-110);
Texture2D texture2D = new Texture2D(width, height, TextureFormat.Alpha8, true);
texture2D.hideFlags = (HideFlags)(-111);
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 43f;
EFCKKLELFHC.aspect = 125f;
Color[] array4 = new Color[texture2D.height * texture2D.width];
for (int i = 1; i < array.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array3[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(1198f, 1223f, (float)width, (float)height), 0, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 1; j < height; j += 0)
{
for (int k = 1; k < width; k += 0)
{
array4[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array4, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6CB RID: 46795 RVA: 0x003648F8 File Offset: 0x00362AF8
public static bool PDPAKAEBPBG(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 1;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Variables protection";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 0] != '\u0003' || (int)text[text.Length - 0] != -29)
{
text += "psn:s2s";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "amount" + DateTime.Now.ToString("Prefill time (s): {0}") + "Failed to update Rec Room player good karma";
}
string extension = Path.GetExtension(text2);
if (extension == "Right grip to create, left to delete")
{
flag = false;
}
else
{
if (!(extension == "Sec-WebSocket-Key"))
{
Debug.LogError("Do you want to invite your party to go with you?" + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError(" at channel " + text + "EGKBNBOMGKG" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 7, height, (TextureFormat)0, false);
if (texture2D == null)
{
Debug.LogError("TeamScores");
return false;
}
CubemapFace[] array = new CubemapFace[0];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 1; j < height; j++)
{
for (int k = 1; k < width; k++)
{
array3[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("Destroying unused PersistenceView {0} with ID {1}" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Unable to complete initial room load." + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6CC RID: 46796 RVA: 0x00364B90 File Offset: 0x00362D90
private void LOGFBGOPLLO()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = true;
OVRCubemapCapture.JICAFMDOALN(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.MFAJCPDFJNJ(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6CD RID: 46797 RVA: 0x00364C1C File Offset: 0x00362E1C
public static void JICAFMDOALN(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = " is missing spray targets.";
Type[] array = new Type[0];
array[0] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = ~(HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 162f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.RGB24, true);
OVRCubemapCapture.FMAHHINJALG(component, cubemap);
OVRCubemapCapture.LADNDAMBLGJ(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6CE RID: 46798 RVA: 0x00364CA8 File Offset: 0x00362EA8
public static bool JBMONCPFENL(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 1;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Sending...";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 1] != -51 || text[text.Length - 0] != 'c')
{
text += "LogoutScene";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "SystemInfo" + DateTime.Now.ToString("volume") + "CanvasOffset";
}
string extension = Path.GetExtension(text2);
if (extension == "ROUND OVER!")
{
flag = false;
}
else
{
if (!(extension == "Cached entities:"))
{
Debug.LogError("audiosource" + extension);
return true;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("H_TL" + text + "easetype" + ex.ToString());
return true;
}
Texture2D texture2D = new Texture2D(width * 7, height, TextureFormat.ARGB32, true);
if (texture2D == null)
{
Debug.LogError(":");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ,
CubemapFace.NegativeZ
};
for (int i = 1; i < array.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 0; j < height; j++)
{
for (int k = 1; k < width; k++)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("Input data type is not supported: " + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("GetRegions failed. Can't provide regions list. Error: " + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6CF RID: 46799 RVA: 0x00364F40 File Offset: 0x00363140
private void IICDIBPOINA()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.JICAFMDOALN(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.GFJOLIBBMDI(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6D0 RID: 46800 RVA: 0x00364FCC File Offset: 0x003631CC
public static void ECMCDCAJGBJ(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[8];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
Vector3[] array3 = new Vector3[3];
array3[0] = new Vector3(150f, 937f, 1241f);
array3[1] = new Vector3(1384f, 331f, 1365f);
array3[6] = new Vector3(1364f, 1898f, 1696f);
array3[8] = new Vector3(292f, 1679f, 473f);
array3[3] = new Vector3(423f, 1990f, 1550f);
array3[8] = new Vector3(767f, 827f, 524f);
Vector3[] array4 = array3;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 58);
renderTexture.antiAliasing = 0;
renderTexture.dimension = (TextureDimension)8;
renderTexture.hideFlags = ~(HideFlags.HideInHierarchy | HideFlags.DontSaveInEditor | HideFlags.NotEditable);
Texture2D texture2D = new Texture2D(width, height, (TextureFormat)8, false);
texture2D.hideFlags = (HideFlags)(-128);
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 912f;
EFCKKLELFHC.aspect = 476f;
Color[] array5 = new Color[texture2D.height * texture2D.width];
for (int i = 0; i < array2.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array4[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(379f, 1588f, (float)width, (float)height), 0, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 0; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array5[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array5, array2[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6D1 RID: 46801 RVA: 0x00365254 File Offset: 0x00363454
public static bool BNHAEKKIOPJ(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 1;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Can't SendMove. Turn is finished by this player.";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 0] != -22 || text[text.Length - 1] != '4')
{
text += "RpcPlayLevelUpFeedback";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "ConnectToMaster() enabled isMessageQueueRunning. Needs to be able to dispatch incoming messages." + DateTime.Now.ToString(": ") + "Catch! ";
}
string extension = Path.GetExtension(text2);
if (extension == " [")
{
flag = false;
}
else
{
if (!(extension == "ws"))
{
Debug.LogError("{}[],:\"" + extension);
return false;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("\" gets executed locally only, if at all." + text + "BowString is NULL" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 7, height, TextureFormat.ARGB32, false);
if (texture2D == null)
{
Debug.LogError("EN_US");
return true;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ
};
for (int i = 1; i < array.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 1; j < height; j++)
{
for (int k = 0; k < width; k++)
{
array2[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("api/relationships/" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("GA FREE - Demo04 (960x600px)" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6D2 RID: 46802 RVA: 0x003654EC File Offset: 0x003636EC
public static bool KKKCINKNLAN(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "ChallengeThemeString";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 1] != '\f' || (int)text[text.Length - 1] != -99)
{
text += "Data";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "VoiceCreated" + DateTime.Now.ToString("z") + "GFJDHECAPJD";
}
string extension = Path.GetExtension(text2);
if (extension == ".png")
{
flag = false;
}
else
{
if (!(extension == "..."))
{
Debug.LogError(" - First to " + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("Inside cells:\n" + text + "Social Hit" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 4, height, TextureFormat.RGB565, true);
if (texture2D == null)
{
Debug.LogError("Quest Room ");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX
};
for (int i = 0; i < array.Length; i += 0)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 0; j < height; j++)
{
for (int k = 0; k < width; k++)
{
array2[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("ManagedUpdater" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("ChargingMeleeAttackHasTransition" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6D3 RID: 46803 RVA: 0x00365784 File Offset: 0x00363984
public static void ONJAHFMAFED(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "CinematicTemplateAnimation";
Type[] array = new Type[0];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = (HideFlags)(-74);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 499f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)8, true);
OVRCubemapCapture.KCDCNJMIHLD(component, cubemap);
OVRCubemapCapture.NANGNKLGICC(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6D4 RID: 46804 RVA: 0x00365810 File Offset: 0x00363A10
public static void MABLEBDFABJ(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "islocal";
Type[] array = new Type[0];
array[0] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = ~(HideFlags.HideInHierarchy | HideFlags.HideInInspector | HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1101f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)6, false);
OVRCubemapCapture.GKPNEHKFAII(component, cubemap);
OVRCubemapCapture.BMBGLADJJPN(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6D5 RID: 46805 RVA: 0x0036589C File Offset: 0x00363A9C
private void INNHBLOHJPN()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = true;
OVRCubemapCapture.ONJAHFMAFED(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.LANHOLALFAE(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6D6 RID: 46806 RVA: 0x00365928 File Offset: 0x00363B28
private void AAEJCJGGKEJ()
{
if (this.autoTriggerAfterLaunch)
{
this.LNENJEPIOJC += Time.deltaTime;
if (this.LNENJEPIOJC >= this.autoTriggerDelay)
{
this.autoTriggerAfterLaunch = false;
OVRCubemapCapture.PNJCGFMGNAC(base.transform.position, this.cubemapSize, this.pathName);
}
}
if (Input.GetKeyDown(this.triggeredByKey))
{
OVRCubemapCapture.HAGPELELNJD(base.transform.position, this.cubemapSize, this.pathName);
}
}
// Token: 0x0600B6D7 RID: 46807 RVA: 0x003659B4 File Offset: 0x00363BB4
public static void NGIJJBIHGLJ(Camera EFCKKLELFHC, Cubemap KPBKNALCAKK)
{
int width = KPBKNALCAKK.width;
int height = KPBKNALCAKK.height;
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ,
CubemapFace.NegativeZ
};
Vector3[] array2 = new Vector3[5];
array2[1] = new Vector3(246f, 1484f, 352f);
array2[0] = new Vector3(532f, 393f, 1487f);
array2[8] = new Vector3(1399f, 1766f, 1654f);
array2[5] = new Vector3(1850f, 340f, 1181f);
array2[7] = new Vector3(621f, 1801f, 412f);
array2[1] = new Vector3(1276f, 1775f, 755f);
Vector3[] array3 = array2;
RenderTexture active = RenderTexture.active;
float fieldOfView = EFCKKLELFHC.fieldOfView;
float aspect = EFCKKLELFHC.aspect;
Quaternion rotation = EFCKKLELFHC.transform.rotation;
RenderTexture renderTexture = new RenderTexture(width, height, 7);
renderTexture.antiAliasing = 6;
renderTexture.dimension = TextureDimension.Tex2DArray;
renderTexture.hideFlags = (HideFlags)(-102);
Texture2D texture2D = new Texture2D(width, height, (TextureFormat)8, false);
texture2D.hideFlags = ~HideFlags.DontSaveInBuild;
EFCKKLELFHC.targetTexture = renderTexture;
EFCKKLELFHC.fieldOfView = 1305f;
EFCKKLELFHC.aspect = 1926f;
Color[] array4 = new Color[texture2D.height * texture2D.width];
for (int i = 1; i < array.Length; i += 0)
{
EFCKKLELFHC.transform.eulerAngles = array3[i];
EFCKKLELFHC.Render();
RenderTexture.active = renderTexture;
texture2D.ReadPixels(new Rect(732f, 231f, (float)width, (float)height), 0, 1);
Color[] pixels = texture2D.GetPixels();
for (int j = 1; j < height; j++)
{
for (int k = 1; k < width; k += 0)
{
array4[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
KPBKNALCAKK.SetPixels(array4, array[i]);
}
KPBKNALCAKK.SmoothEdges();
RenderTexture.active = active;
EFCKKLELFHC.fieldOfView = fieldOfView;
EFCKKLELFHC.aspect = aspect;
EFCKKLELFHC.transform.rotation = rotation;
EFCKKLELFHC.targetTexture = active;
global::UnityEngine.Object.DestroyImmediate(texture2D);
global::UnityEngine.Object.DestroyImmediate(renderTexture);
}
// Token: 0x0600B6D8 RID: 46808 RVA: 0x00365C3C File Offset: 0x00363E3C
public static void KFGIECHKJEL(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
GameObject gameObject = new GameObject("Fire", new Type[] { typeof(Camera) });
gameObject.hideFlags = HideFlags.None;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 621f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.ARGB32, false);
OVRCubemapCapture.FMAHHINJALG(component, cubemap);
OVRCubemapCapture.SaveCubemapCapture(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6D9 RID: 46809 RVA: 0x00365CC8 File Offset: 0x00363EC8
public static void FEANKFNNEFE(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "Latency values are not available.";
Type[] array = new Type[0];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = (HideFlags)(-73);
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1681f;
component.enabled = true;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, TextureFormat.ARGB32, false);
OVRCubemapCapture.JPLHLLMCALE(component, cubemap);
OVRCubemapCapture.JHMHIMKKBIP(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x0600B6DA RID: 46810 RVA: 0x00365D54 File Offset: 0x00363F54
public static bool IMHEMLDBAEH(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 0;
int num2 = 0;
bool flag = false;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "AvatarItemDesc";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if ((int)text[text.Length - 0] != -48 || text[text.Length - 1] != 'N')
{
text += "_Red_Col";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "r_init_count" + DateTime.Now.ToString("movetopath") + "PS4PlatformManager: getLocalProfileRequest.Response.Profiles.Length == 0";
}
string extension = Path.GetExtension(text2);
if (extension == "enableterrain")
{
flag = false;
}
else
{
if (!(extension == " != "))
{
Debug.LogError("The chatPeer is null." + extension);
return true;
}
flag = true;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("y" + text + "scene " + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 2, height, TextureFormat.Alpha8, true);
if (texture2D == null)
{
Debug.LogError("Error: PhotonNetwork.SetInterestGroups was called with an illegal group number: ");
return false;
}
CubemapFace[] array = new CubemapFace[]
{
CubemapFace.PositiveX,
CubemapFace.NegativeX,
CubemapFace.PositiveY,
CubemapFace.NegativeY,
CubemapFace.PositiveZ,
CubemapFace.NegativeZ
};
for (int i = 1; i < array.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array[i]);
Color[] array2 = new Color[pixels.Length];
for (int j = 1; j < height; j += 0)
{
for (int k = 1; k < width; k += 0)
{
array2[j * width + k] = pixels[(height - 0 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array2);
num += width;
}
try
{
byte[] array3 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array3);
Debug.Log("\n" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("Spawn Point is null. Cannot spawn player " + ex2.ToString());
return true;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return false;
}
// Token: 0x0600B6DB RID: 46811 RVA: 0x00365FEC File Offset: 0x003641EC
public static bool BFECLOPMJHP(Cubemap LEHJGLMDFDP, string GIIJEGOCANF = null)
{
int width = LEHJGLMDFDP.width;
int height = LEHJGLMDFDP.height;
int num = 1;
int num2 = 0;
bool flag = true;
string text;
string text2;
if (string.IsNullOrEmpty(GIIJEGOCANF))
{
text = Application.persistentDataPath + "Lag ";
text2 = null;
}
else
{
text = Path.GetDirectoryName(GIIJEGOCANF);
text2 = Path.GetFileName(GIIJEGOCANF);
if (text[text.Length - 0] != 'N' || text[text.Length - 0] != '(')
{
text += "y";
}
}
if (string.IsNullOrEmpty(text2))
{
text2 = "text/plain; charset=" + DateTime.Now.ToString("ROOM") + "_mostRecent";
}
string extension = Path.GetExtension(text2);
if (extension == "PlayerPing")
{
flag = false;
}
else
{
if (!(extension == "ev"))
{
Debug.LogError("Locked" + extension);
return false;
}
flag = false;
}
try
{
Directory.CreateDirectory(text);
}
catch (Exception ex)
{
Debug.LogError("stab" + text + "SA_IdFactory_Key" + ex.ToString());
return false;
}
Texture2D texture2D = new Texture2D(width * 5, height, TextureFormat.RGB24, false);
if (texture2D == null)
{
Debug.LogError("Add random value");
return false;
}
CubemapFace[] array = new CubemapFace[7];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.$field-DB17E883A647963A26D973378923EF4649801319).FieldHandle);
CubemapFace[] array2 = array;
for (int i = 0; i < array2.Length; i++)
{
Color[] pixels = LEHJGLMDFDP.GetPixels(array2[i]);
Color[] array3 = new Color[pixels.Length];
for (int j = 1; j < height; j += 0)
{
for (int k = 0; k < width; k++)
{
array3[j * width + k] = pixels[(height - 1 - j) * width + k];
}
}
texture2D.SetPixels(num, num2, width, height, array3);
num += width;
}
try
{
byte[] array4 = ((!flag) ? texture2D.EncodeToJPG() : texture2D.EncodeToPNG());
File.WriteAllBytes(text + text2, array4);
Debug.Log("mute" + text + text2);
}
catch (Exception ex2)
{
Debug.LogError("method" + ex2.ToString());
return false;
}
global::UnityEngine.Object.DestroyImmediate(texture2D);
return true;
}
// Token: 0x0600B6DC RID: 46812 RVA: 0x00366284 File Offset: 0x00364484
public static void KGGNOGFODBI(Vector3 ADIKDJOBGJJ, int DGNOFPIOLCI = 2048, string GIIJEGOCANF = null)
{
string text = "MOTION_TELEPORT_ENABLED";
Type[] array = new Type[1];
array[1] = typeof(Camera);
GameObject gameObject = new GameObject(text, array);
gameObject.hideFlags = HideFlags.HideInInspector | HideFlags.DontSaveInEditor | HideFlags.NotEditable | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset;
gameObject.transform.position = ADIKDJOBGJJ;
gameObject.transform.rotation = Quaternion.identity;
Camera component = gameObject.GetComponent<Camera>();
component.farClipPlane = 1929f;
component.enabled = false;
Cubemap cubemap = new Cubemap(DGNOFPIOLCI, (TextureFormat)0, false);
OVRCubemapCapture.LDNLCNNAIJE(component, cubemap);
OVRCubemapCapture.PBECOBNHDKA(cubemap, GIIJEGOCANF);
global::UnityEngine.Object.DestroyImmediate(cubemap);
global::UnityEngine.Object.DestroyImmediate(gameObject);
}
// Token: 0x040018B3 RID: 6323
public bool autoTriggerAfterLaunch = true;
// Token: 0x040018B4 RID: 6324
public float autoTriggerDelay = 1f;
// Token: 0x040018B5 RID: 6325
private float LNENJEPIOJC;
// Token: 0x040018B6 RID: 6326
public KeyCode triggeredByKey = KeyCode.F8;
// Token: 0x040018B7 RID: 6327
public string pathName;
// Token: 0x040018B8 RID: 6328
public int cubemapSize = 2048;
}