scripts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000005 RID: 5
|
||||
internal class AddressAttribute : Attribute
|
||||
{
|
||||
// Token: 0x04000005 RID: 5
|
||||
public string RVA;
|
||||
|
||||
// Token: 0x04000006 RID: 6
|
||||
public string Offset;
|
||||
|
||||
// Token: 0x04000007 RID: 7
|
||||
public string VA;
|
||||
|
||||
// Token: 0x04000008 RID: 8
|
||||
public string Slot;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x0200000A RID: 10
|
||||
internal class AnalysisFailedException : Exception
|
||||
{
|
||||
// Token: 0x06000017 RID: 23 RVA: 0x0000208A File Offset: 0x0000028A
|
||||
public AnalysisFailedException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000007 RID: 7
|
||||
internal class AttributeAttribute : Attribute
|
||||
{
|
||||
// Token: 0x0400000A RID: 10
|
||||
public string Name;
|
||||
|
||||
// Token: 0x0400000B RID: 11
|
||||
public string RVA;
|
||||
|
||||
// Token: 0x0400000C RID: 12
|
||||
public string Offset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000006 RID: 6
|
||||
internal class FieldOffsetAttribute : Attribute
|
||||
{
|
||||
// Token: 0x04000009 RID: 9
|
||||
public string Offset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000008 RID: 8
|
||||
internal class MetadataOffsetAttribute : Attribute
|
||||
{
|
||||
// Token: 0x0400000D RID: 13
|
||||
public string Offset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000009 RID: 9
|
||||
internal class TokenAttribute : Attribute
|
||||
{
|
||||
// Token: 0x0400000E RID: 14
|
||||
public string Token;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using AOT;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DXGI
|
||||
{
|
||||
// Token: 0x02000002 RID: 2
|
||||
[Token(Token = "0x2000002")]
|
||||
[StructLayout(3)]
|
||||
public class DXGIDisplays : IDisposable
|
||||
{
|
||||
// Token: 0x06000001 RID: 1
|
||||
[Token(Token = "0x6000001")]
|
||||
[Address(RVA = "0xF92850", Offset = "0xF91250", VA = "0x180F92850")]
|
||||
private static extern void LinkUnityDebugCallback(DXGIDisplays.NativeUnityDebugLogCallback callback);
|
||||
|
||||
// Token: 0x06000002 RID: 2 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000002")]
|
||||
[Address(RVA = "0xF928E0", Offset = "0xF912E0", VA = "0x180F928E0")]
|
||||
[MonoPInvokeCallback(typeof(DXGIDisplays.NativeUnityDebugLogCallback))]
|
||||
private static void OnDebugCallback(IntPtr request, int size, int logType)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000003 RID: 3
|
||||
[Token(Token = "0x6000003")]
|
||||
[Address(RVA = "0xF927E0", Offset = "0xF911E0", VA = "0x180F927E0")]
|
||||
private static extern void Initialize();
|
||||
|
||||
// Token: 0x06000004 RID: 4
|
||||
[Token(Token = "0x6000004")]
|
||||
[Address(RVA = "0xF92310", Offset = "0xF90D10", VA = "0x180F92310")]
|
||||
private static extern void Finalize();
|
||||
|
||||
// Token: 0x06000005 RID: 5
|
||||
[Token(Token = "0x6000005")]
|
||||
[Address(RVA = "0xF92380", Offset = "0xF90D80", VA = "0x180F92380")]
|
||||
private static extern int GetDisplayCount();
|
||||
|
||||
// Token: 0x06000006 RID: 6
|
||||
[Token(Token = "0x6000006")]
|
||||
[Address(RVA = "0xF92470", Offset = "0xF90E70", VA = "0x180F92470")]
|
||||
private static extern int GetDisplayLeft(int id);
|
||||
|
||||
// Token: 0x06000007 RID: 7
|
||||
[Token(Token = "0x6000007")]
|
||||
[Address(RVA = "0xF926E0", Offset = "0xF910E0", VA = "0x180F926E0")]
|
||||
private static extern int GetDisplayTop(int id);
|
||||
|
||||
// Token: 0x06000008 RID: 8
|
||||
[Token(Token = "0x6000008")]
|
||||
[Address(RVA = "0xF92760", Offset = "0xF91160", VA = "0x180F92760")]
|
||||
private static extern int GetDisplayWidth(int id);
|
||||
|
||||
// Token: 0x06000009 RID: 9
|
||||
[Token(Token = "0x6000009")]
|
||||
[Address(RVA = "0xF923F0", Offset = "0xF90DF0", VA = "0x180F923F0")]
|
||||
private static extern int GetDisplayHeight(int id);
|
||||
|
||||
// Token: 0x0600000A RID: 10 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600000A")]
|
||||
[Address(RVA = "0xF92A00", Offset = "0xF91400", VA = "0x180F92A00")]
|
||||
public DXGIDisplays()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600000B RID: 11 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600000B")]
|
||||
[Address(RVA = "0xF92310", Offset = "0xF90D10", VA = "0x180F92310", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000001 RID: 1
|
||||
// (get) Token: 0x0600000C RID: 12 RVA: 0x00002054 File Offset: 0x00000254
|
||||
[Token(Token = "0x17000001")]
|
||||
public int DisplayCount
|
||||
{
|
||||
[Token(Token = "0x600000C")]
|
||||
[Address(RVA = "0xF92380", Offset = "0xF90D80", VA = "0x180F92380")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600000D RID: 13 RVA: 0x0000206C File Offset: 0x0000026C
|
||||
[Token(Token = "0x600000D")]
|
||||
[Address(RVA = "0xF924F0", Offset = "0xF90EF0", VA = "0x180F924F0")]
|
||||
public Rect GetDisplayRect(int displayId)
|
||||
{
|
||||
return default(Rect);
|
||||
}
|
||||
|
||||
// Token: 0x02000003 RID: 3
|
||||
[Token(Token = "0x2000003")]
|
||||
private enum UnityDebugLogType
|
||||
{
|
||||
// Token: 0x04000002 RID: 2
|
||||
[Token(Token = "0x4000002")]
|
||||
Default,
|
||||
// Token: 0x04000003 RID: 3
|
||||
[Token(Token = "0x4000003")]
|
||||
Warning,
|
||||
// Token: 0x04000004 RID: 4
|
||||
[Token(Token = "0x4000004")]
|
||||
Error
|
||||
}
|
||||
|
||||
// Token: 0x02000004 RID: 4
|
||||
// (Invoke) Token: 0x0600000F RID: 15
|
||||
[Token(Token = "0x2000004")]
|
||||
private delegate void NativeUnityDebugLogCallback(IntPtr request, int size, int logType);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("0.0.0.0")]
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{79F1A0F0-4A5C-4735-AE60-B98C0B426262}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>RecRoom.Agdxgidisplays.Runtime</RootNamespace>
|
||||
<AssemblyName>RecRoom.Agdxgidisplays.Runtime</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
</PropertyGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Cpp2IlInjected\AddressAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\AnalysisFailedException.cs" />
|
||||
<Compile Include="Cpp2IlInjected\AttributeAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\FieldOffsetAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\MetadataOffsetAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\TokenAttribute.cs" />
|
||||
<Compile Include="DXGI\DXGIDisplays.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\mscorlib\mscorlib.csproj">
|
||||
<Project>{79f1a0f0-4a5c-4735-ae60-b98c0b426251}</Project>
|
||||
<Name>mscorlib</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\UnityEngine.CoreModule\UnityEngine.CoreModule.csproj">
|
||||
<Project>{79f1a0f0-4a5c-4735-ae60-b98c0b42629c}</Project>
|
||||
<Name>UnityEngine.CoreModule</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user