57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.XR;
|
|
|
|
// Token: 0x0200010B RID: 267
|
|
[Token(Token = "0x200010B")]
|
|
[StructLayout(3)]
|
|
public class UserReportingXRExtensions : MonoBehaviour
|
|
{
|
|
// Token: 0x06000703 RID: 1795 RVA: 0x00023EA0 File Offset: 0x000220A0
|
|
[Token(Token = "0x6000703")]
|
|
[Address(RVA = "0x1A044E0", Offset = "0x1A02EE0", VA = "0x181A044E0")]
|
|
private void Start()
|
|
{
|
|
if (XRDevice.isPresent)
|
|
{
|
|
KHGPLGBHIAH khgplgbhiah = PDEDCLFAOKJ.FDBIPODJOAB;
|
|
string model = XRDevice.model;
|
|
khgplgbhiah.AELGGKGKJNF("XRDeviceModel", model);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000704 RID: 1796 RVA: 0x00023EDC File Offset: 0x000220DC
|
|
[Token(Token = "0x6000704")]
|
|
[Address(RVA = "0x1A04590", Offset = "0x1A02F90", VA = "0x181A04590")]
|
|
private void Update()
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if (XRDevice.isPresent)
|
|
{
|
|
if (XRStats.TryGetDroppedFrameCount(num))
|
|
{
|
|
KHGPLGBHIAH khgplgbhiah = PDEDCLFAOKJ.FDBIPODJOAB;
|
|
}
|
|
if (XRStats.TryGetFramePresentCount(num))
|
|
{
|
|
KHGPLGBHIAH khgplgbhiah2 = PDEDCLFAOKJ.FDBIPODJOAB;
|
|
}
|
|
if (XRStats.TryGetGPUTimeLastFrame(num2))
|
|
{
|
|
PDEDCLFAOKJ.FDBIPODJOAB.MDDPIOLHKHH("XR.GPUTimeLastFrame", (double)num2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000705 RID: 1797 RVA: 0x00023F40 File Offset: 0x00022140
|
|
[Token(Token = "0x6000705")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public UserReportingXRExtensions()
|
|
{
|
|
}
|
|
}
|