// Token: 0x0600586F RID: 22639 RVA: 0x001E9FF8 File Offset: 0x001E83F8 private void OnEnable() { if (VRCLog.Instance != null && VRCLog.Instance != this) { UnityEngine.Debug.LogError("Instance of VRCLog already created! Destroying new one. "); UnityEngine.Object.Destroy(base.gameObject); return; } VRCLog.Instance = this; if (this.uploadLog == null) { this.uploadLog = new ConcurrentQueue <string>(34); } if (Application.isEditor && !VRCLog.profilerEnabled) { this.logHandler = new VRCLog.ThreadedDiskWriteHandler(UnityEngine.Debug.logger.logHandler, this.uploadLog); } else { this.logHandler = new VRCLog.ThreadedDiskWriteHandler(null, this.uploadLog); } UnityEngine.Debug.logger.logHandler = this.logHandler; Application.logMessageReceivedThreaded += this.LogMessageReceived; if (Application.isEditor) { foreach (LogType logType in Enum.GetValues(typeof(LogType)).Cast <LogType>()) { this._savedStackTraceLogType[(int)logType] = Application.GetStackTraceLogType(logType); Application.SetStackTraceLogType(logType, StackTraceLogType.ScriptOnly); } } UnityEngine.Debug.Log(VRCApplicationSetup.GetBuildDescriptionString()); }
// Token: 0x0600517B RID: 20859 RVA: 0x001BE994 File Offset: 0x001BCD94 private void SendHmdAnalytic() { string analyticName = "hmdType"; string value = "none"; string value2 = "none"; string value3 = "steam"; if (HMDManager.IsHmdDetected()) { if (SteamVR.instance.hmd_TrackingSystemName == "oculus") { value = "oculus"; } else { value = "vive"; } } switch (VRCInputManager.GetLastUsedInputMethod()) { case VRCInputMethod.Keyboard: value2 = "keyboard"; break; case VRCInputMethod.Mouse: value2 = "keyboard"; break; case VRCInputMethod.Controller: value2 = "controller"; break; case VRCInputMethod.Vive: value2 = "hand"; break; case VRCInputMethod.Oculus: value2 = "hand"; break; } Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary["deviceId"] = ApiModel.DeviceID; dictionary["buildType"] = value3; dictionary["hmdType"] = value; dictionary["inputType"] = value2; dictionary["platform"] = Application.platform.ToString(); dictionary["store"] = VRCApplicationSetup.GetBuildStoreID(); dictionary["buildVersion"] = VRCApplicationSetup.GetBuildVersionString(); Debug.Log("Sending deviceInfo analytic: " + string.Join(", ", (from kvp in dictionary select kvp.Key + " = " + kvp.Value).ToArray <string>())); base.StartCoroutine(this.SendUnityHmdAnalytic(analyticName, dictionary)); global::Analytics.Send(ApiAnalyticEvent.EventType.deviceInfo, dictionary, null, null); }
// Token: 0x06005750 RID: 22352 RVA: 0x001E120C File Offset: 0x001DF60C public static string GetBuildDescriptionString() { return(string.Concat(new string[] { "VRChat ", VRCApplicationSetup.GetBuildVersionString(), ", ", VRCApplicationSetup.GetBuildStoreID(), " ", Application.platform.ToString() })); }
// Token: 0x060062B1 RID: 25265 RVA: 0x00232D84 File Offset: 0x00231184 private void UpdateWindowsCursorLock() { if (Input.GetKey(KeyCode.Tab) || this.uiActive) { Cursor.lockState = CursorLockMode.None; Cursor.visible = (Input.GetKey(KeyCode.Tab) || VRCApplicationSetup.IsEditor()); } else { Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; } }
public void Awake() { Cheat.AllocConsole(); System.Console.Title = "VRCheat by www.TEAMGAMERFOOD.com"; System.Console.SetOut(new StreamWriter(System.Console.OpenStandardOutput()) { AutoFlush = true }); System.Console.SetIn(new StreamReader(System.Console.OpenStandardInput())); AppDomain.CurrentDomain.UnhandledException += this.method_0; System.Console.WriteLine("Created by A5"); Cheat.SetForegroundWindow(Cheat.GetConsoleWindow()); System.Console.WriteLine("VRChat {0}", VRCApplicationSetup.GetBuildVersionString()); System.Console.Title = string.Format("VRCheat by www.TEAMGAMERFOOD.com (VRChat {0})", VRCApplicationSetup.GetBuildVersionString()); UnityEngine.Object.DontDestroyOnLoad(this); }
public static void Send(IEnumerable <ApiAnalyticEvent.EventInfo> events) { ApiAnalyticEvent.Send(events.Select <ApiAnalyticEvent.EventInfo, ApiAnalyticEvent.EventInfo>((Func <ApiAnalyticEvent.EventInfo, ApiAnalyticEvent.EventInfo>)(e => { e.userId = APIUser.CurrentUser == null ? string.Empty : APIUser.CurrentUser.id; e.worldId = RoomManager.currentRoom == null ? string.Empty : RoomManager.currentRoom.id; if (!e.location.HasValue) { e.location = new Vector3?(!((UnityEngine.Object)VRCPlayer.Instance != (UnityEngine.Object)null) ? Vector3.zero : VRCPlayer.Instance.transform.position); } if (e.eventType == ApiAnalyticEvent.EventType.error) { e.parameters.Add("buildVersion", (object)VRCApplicationSetup.GetBuildVersionString()); } return(e); }))); }
// Token: 0x06005875 RID: 22645 RVA: 0x001EA350 File Offset: 0x001E8750 private bool _uploadMiniLog(string why) { return(false); if (!base.enabled) { if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Upload of mini-log was triggered, but logging is disabled! Reason: " + this.uploadLogReason); } return(false); } if (VRCApplicationSetup.IsEditor()) { if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Mini-log upload disabled in editor. Trigger Reason: " + this.uploadLogReason); } return(false); } if (this.isUploadingLog) { if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Already uploading mini-log now. Reason: " + this.uploadLogReason); } return(false); } if (this.uploadReasonsAlreadyTriggered.Contains(why)) { return(false); } this.uploadReasonsAlreadyTriggered.Add(why); this.isUploadingLog = true; this.uploadLogReason = why; if (!string.IsNullOrEmpty(this.uploadLogReason)) { UnityEngine.Debug.LogError("Upload of mini-log was triggered! Reason: " + this.uploadLogReason); } base.StartCoroutine(this.UploadMiniLogCoroutine()); return(true); }
// Token: 0x060051B9 RID: 20921 RVA: 0x001BF390 File Offset: 0x001BD790 protected virtual Vector3 CalculateRotation(float dt) { if (VRCInputManager.comfortTurning) { float num = this.inAxisLookHorizontal.axis; if (this.inComfortLeft.button) { num = -1f; } if (this.inComfortRight.button) { num = 1f; } float num2 = Mathf.Abs(num); if (num2 <= 0.7f || this.ComfortRotationInputActive) { if (num2 < 0.3f) { this.ComfortRotationInputActive = false; } return(Vector3.zero); } this.ComfortRotationInputActive = true; if (num < 0f) { return(new Vector3(0f, -1f * this.ComfortRotation, 0f)); } return(new Vector3(0f, 1f * this.ComfortRotation, 0f)); } else { if (this.IsFirstPhysicsStepThisFrame) { float num3 = 0f; if (Cursor.lockState == CursorLockMode.Locked || QuickMenu.Instance.IsActive || VRCApplicationSetup.IsEditor()) { num3 = Input.GetAxis("Mouse X") * this.mouseRotationSpeed; } num3 += this.inAxisLookHorizontal.axis * this.controllerRotationSpeed; return(new Vector3(0f, num3, 0f)); } return(Vector3.zero); } }
static string smethod_72() { return(VRCApplicationSetup.GetBuildVersionString()); }
// Token: 0x06005620 RID: 22048 RVA: 0x001DA974 File Offset: 0x001D8D74 public static bool ShouldForceTalkToggle() { return(!VRCApplicationSetup.IsEditor() && VRCInputManager.IsUsingHandController()); }
// Token: 0x0600561F RID: 22047 RVA: 0x001DA952 File Offset: 0x001D8D52 public static bool ShouldForceEnableHeadLookWalk() { return(!VRCApplicationSetup.IsEditor() && (VRCInputManager.IsRequired(VRCInputManager.InputMethod.Vive) || VRCInputManager.IsRequired(VRCInputManager.InputMethod.Oculus))); }
// Token: 0x0600561E RID: 22046 RVA: 0x001DA93C File Offset: 0x001D8D3C public static bool ShouldForceDisableComfortTurning() { return(!VRCApplicationSetup.IsEditor() && !HMDManager.IsHmdDetected()); }
// Token: 0x0600561D RID: 22045 RVA: 0x001DA926 File Offset: 0x001D8D26 public static bool ShouldForceGamelikeLocomotion() { return(!VRCApplicationSetup.IsEditor() && !HMDManager.IsHmdDetected()); }
// Token: 0x0600587B RID: 22651 RVA: 0x001EA504 File Offset: 0x001E8904 public JSONLog() { VRCApplicationSetup vrcapplicationSetup = UnityEngine.Object.FindObjectOfType <VRCApplicationSetup>(); this.version = vrcapplicationSetup.appVersion; }
// Token: 0x06006259 RID: 25177 RVA: 0x00231257 File Offset: 0x0022F657 public void ButtonDownloadUpdate() { VRCApplicationSetup.DownloadUpdate(); Application.Quit(); }