initial commit of the files
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
.vs
|
||||||
|
.git
|
||||||
|
x64
|
||||||
|
todo.txt
|
||||||
|
x64
|
||||||
30
DevourClient.sln
Normal file
30
DevourClient.sln
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.1.32407.343
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevourClient", "IL2CppDLL.vcxproj", "{AFA414F5-355A-472E-822F-244F167E5B0D}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Release|x64.Build.0 = Release|x64
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{AFA414F5-355A-472E-822F-244F167E5B0D}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {3ee956bc-55c1-4568-beb0-b3ee2502520d}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
208
IL2CppDLL.vcxproj
Normal file
208
IL2CppDLL.vcxproj
Normal file
@@ -0,0 +1,208 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="framework\dllmain.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="framework\helpers.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="framework\il2cpp-init.cpp" />
|
||||||
|
<ClCompile Include="framework\pch-il2cpp.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="lib\object.cpp" />
|
||||||
|
<ClCompile Include="lib\wrapper.cpp" />
|
||||||
|
<ClCompile Include="user\main.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="appdata\il2cpp-api-functions.h" />
|
||||||
|
<ClInclude Include="appdata\il2cpp-api-functions-ptr.h" />
|
||||||
|
<ClInclude Include="appdata\il2cpp-functions.h" />
|
||||||
|
<ClInclude Include="appdata\il2cpp-metadata-version.h" />
|
||||||
|
<ClInclude Include="appdata\il2cpp-types-ptr.h" />
|
||||||
|
<ClInclude Include="appdata\il2cpp-types.h" />
|
||||||
|
<ClInclude Include="framework\helpers.h" />
|
||||||
|
<ClInclude Include="framework\il2cpp-appdata.h" />
|
||||||
|
<ClInclude Include="framework\il2cpp-init.h" />
|
||||||
|
<ClInclude Include="framework\pch-il2cpp.h" />
|
||||||
|
<ClInclude Include="lib\object.h" />
|
||||||
|
<ClInclude Include="lib\wrapper.h" />
|
||||||
|
<ClInclude Include="user\main.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<!--<VCProjectVersion>16.0</VCProjectVersion>-->
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectGuid>{AFA414F5-355A-472E-822F-244F167E5B0D}</ProjectGuid>
|
||||||
|
<RootNamespace>Il2CppDLL</RootNamespace>
|
||||||
|
<ProjectName>DevourClient</ProjectName>
|
||||||
|
<!--<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>-->
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<!--<PlatformToolset>v142</PlatformToolset>-->
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<!--<PlatformToolset>v142</PlatformToolset>-->
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<!--<PlatformToolset>v142</PlatformToolset>-->
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<!--<PlatformToolset>v142</PlatformToolset>-->
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v143</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user;$(ProjectDir)lib</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user;$(ProjectDir)lib</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;IL2CPPDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch-il2cpp.h</PrecompiledHeaderFile>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<AdditionalIncludeDirectories>$(ProjectDir)appdata;$(ProjectDir)framework;$(ProjectDir)user</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
||||||
81
IL2CppDLL.vcxproj.filters
Normal file
81
IL2CppDLL.vcxproj.filters
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="user\main.cpp">
|
||||||
|
<Filter>user</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="framework\dllmain.cpp">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="framework\helpers.cpp">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="framework\il2cpp-init.cpp">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="framework\pch-il2cpp.cpp">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="lib\wrapper.cpp">
|
||||||
|
<Filter>lib</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="lib\object.cpp">
|
||||||
|
<Filter>lib</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="user\main.h">
|
||||||
|
<Filter>user</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-api-functions.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-api-functions-ptr.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-functions.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-metadata-version.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-types.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-types-ptr.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="framework\helpers.h">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="framework\il2cpp-appdata.h">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="framework\il2cpp-init.h">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="framework\pch-il2cpp.h">
|
||||||
|
<Filter>framework</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="lib\wrapper.h">
|
||||||
|
<Filter>lib</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="lib\object.h">
|
||||||
|
<Filter>lib</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="appdata">
|
||||||
|
<UniqueIdentifier>{facc3346-58de-47c4-a7b1-703dcab072f3}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="framework">
|
||||||
|
<UniqueIdentifier>{08c1b55f-419c-4aa9-a623-bfdfe4165e47}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="user">
|
||||||
|
<UniqueIdentifier>{fcf43a20-437e-405b-adb6-ad412772eaa9}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="lib">
|
||||||
|
<UniqueIdentifier>{27bce89c-df31-4c70-93e6-760b9502363e}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
4
IL2CppDLL.vcxproj.user
Normal file
4
IL2CppDLL.vcxproj.user
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
</Project>
|
||||||
243
appdata/il2cpp-api-functions-ptr.h
Normal file
243
appdata/il2cpp-api-functions-ptr.h
Normal file
@@ -0,0 +1,243 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Target Unity version: 2021.2.0+
|
||||||
|
|
||||||
|
// ******************************************************************************
|
||||||
|
// * IL2CPP API function pointers
|
||||||
|
// ******************************************************************************
|
||||||
|
|
||||||
|
#define il2cpp_add_internal_call_ptr 0x00334290
|
||||||
|
#define il2cpp_alloc_ptr 0x0030D960
|
||||||
|
#define il2cpp_allocation_granularity_ptr 0x00205760
|
||||||
|
#define il2cpp_array_class_get_ptr 0x003342B0
|
||||||
|
#define il2cpp_array_element_size_ptr 0x00334370
|
||||||
|
#define il2cpp_array_get_byte_length_ptr 0x003342C0
|
||||||
|
#define il2cpp_array_length_ptr 0x000047A0
|
||||||
|
#define il2cpp_array_new_ptr 0x00334310
|
||||||
|
#define il2cpp_array_new_full_ptr 0x00334350
|
||||||
|
#define il2cpp_array_new_specific_ptr 0x00334340
|
||||||
|
#define il2cpp_array_object_header_size_ptr 0x0022D1D0
|
||||||
|
#define il2cpp_assembly_get_image_ptr 0x00021660
|
||||||
|
#define il2cpp_bounded_array_class_get_ptr 0x00334360
|
||||||
|
#define il2cpp_capture_memory_snapshot_ptr 0x003365C0
|
||||||
|
#define il2cpp_class_array_element_size_ptr 0x00334820
|
||||||
|
#define il2cpp_class_enum_basetype_ptr 0x00334380
|
||||||
|
#define il2cpp_class_for_each_ptr 0x00336BC0
|
||||||
|
#define il2cpp_class_from_il2cpp_type_ptr 0x00334460
|
||||||
|
#define il2cpp_class_from_name_ptr 0x00334470
|
||||||
|
#define il2cpp_class_from_system_type_ptr 0x003343A0
|
||||||
|
#define il2cpp_class_from_type_ptr 0x00334460
|
||||||
|
#define il2cpp_class_get_assemblyname_ptr 0x003348E0
|
||||||
|
#define il2cpp_class_get_bitmap_ptr 0x00334930
|
||||||
|
#define il2cpp_class_get_bitmap_size_ptr 0x00334910
|
||||||
|
#define il2cpp_class_get_data_size_ptr 0x00334900
|
||||||
|
#define il2cpp_class_get_declaring_type_ptr 0x00251990
|
||||||
|
#define il2cpp_class_get_element_class_ptr 0x00211DD0
|
||||||
|
#define il2cpp_class_get_events_ptr 0x00334480
|
||||||
|
#define il2cpp_class_get_field_from_name_ptr 0x003346E0
|
||||||
|
#define il2cpp_class_get_fields_ptr 0x00334490
|
||||||
|
#define il2cpp_class_get_flags_ptr 0x003347E0
|
||||||
|
#define il2cpp_class_get_image_ptr 0x00021660
|
||||||
|
#define il2cpp_class_get_interfaces_ptr 0x00334520
|
||||||
|
#define il2cpp_class_get_method_from_name_ptr 0x00334780
|
||||||
|
#define il2cpp_class_get_methods_ptr 0x003346F0
|
||||||
|
#define il2cpp_class_get_name_ptr 0x000224D0
|
||||||
|
#define il2cpp_class_get_namespace_ptr 0x00024FA0
|
||||||
|
#define il2cpp_class_get_nested_types_ptr 0x00334510
|
||||||
|
#define il2cpp_class_get_parent_ptr 0x00251A00
|
||||||
|
#define il2cpp_class_get_properties_ptr 0x003345B0
|
||||||
|
#define il2cpp_class_get_property_from_name_ptr 0x003345C0
|
||||||
|
#define il2cpp_class_get_rank_ptr 0x003348F0
|
||||||
|
#define il2cpp_class_get_static_field_data_ptr 0x00003DB0
|
||||||
|
#define il2cpp_class_get_type_ptr 0x00262640
|
||||||
|
#define il2cpp_class_get_type_token_ptr 0x00334830
|
||||||
|
#define il2cpp_class_get_userdata_offset_ptr 0x00336BB0
|
||||||
|
#define il2cpp_class_has_attribute_ptr 0x00334840
|
||||||
|
#define il2cpp_class_has_parent_ptr 0x00334400
|
||||||
|
#define il2cpp_class_has_references_ptr 0x00334890
|
||||||
|
#define il2cpp_class_instance_size_ptr 0x00334790
|
||||||
|
#define il2cpp_class_is_abstract_ptr 0x003347F0
|
||||||
|
#define il2cpp_class_is_assignable_from_ptr 0x002DBE20
|
||||||
|
#define il2cpp_class_is_blittable_ptr 0x003347C0
|
||||||
|
#define il2cpp_class_is_enum_ptr 0x003348D0
|
||||||
|
#define il2cpp_class_is_generic_ptr 0x003343D0
|
||||||
|
#define il2cpp_class_is_inflated_ptr 0x003343E0
|
||||||
|
#define il2cpp_class_is_interface_ptr 0x00334800
|
||||||
|
#define il2cpp_class_is_subclass_of_ptr 0x003343F0
|
||||||
|
#define il2cpp_class_is_valuetype_ptr 0x003347B0
|
||||||
|
#define il2cpp_class_num_fields_ptr 0x003347A0
|
||||||
|
#define il2cpp_class_set_userdata_ptr 0x00336BA0
|
||||||
|
#define il2cpp_class_value_size_ptr 0x003347D0
|
||||||
|
#define il2cpp_current_thread_get_frame_at_ptr 0x00336150
|
||||||
|
#define il2cpp_current_thread_get_stack_depth_ptr 0x00336260
|
||||||
|
#define il2cpp_current_thread_get_top_frame_ptr 0x00336050
|
||||||
|
#define il2cpp_current_thread_walk_frame_stack_ptr 0x00335F00
|
||||||
|
#define il2cpp_custom_attrs_construct_ptr 0x00336A10
|
||||||
|
#define il2cpp_custom_attrs_free_ptr 0x00003390
|
||||||
|
#define il2cpp_custom_attrs_from_class_ptr 0x00336780
|
||||||
|
#define il2cpp_custom_attrs_from_method_ptr 0x003367E0
|
||||||
|
#define il2cpp_custom_attrs_get_attr_ptr 0x003368D0
|
||||||
|
#define il2cpp_custom_attrs_has_attr_ptr 0x00336850
|
||||||
|
#define il2cpp_debug_get_method_info_ptr 0x003366E0
|
||||||
|
#define il2cpp_debugger_set_agent_options_ptr 0x00003390
|
||||||
|
#define il2cpp_domain_assembly_open_ptr 0x00334E60
|
||||||
|
#define il2cpp_domain_get_ptr 0x00334E50
|
||||||
|
#define il2cpp_domain_get_assemblies_ptr 0x00334E70
|
||||||
|
#define il2cpp_exception_from_name_msg_ptr 0x00334EA0
|
||||||
|
#define il2cpp_field_get_flags_ptr 0x00335150
|
||||||
|
#define il2cpp_field_get_name_ptr 0x00021660
|
||||||
|
#define il2cpp_field_get_offset_ptr 0x00335160
|
||||||
|
#define il2cpp_field_get_parent_ptr 0x000224D0
|
||||||
|
#define il2cpp_field_get_type_ptr 0x00003C30
|
||||||
|
#define il2cpp_field_get_value_ptr 0x00335170
|
||||||
|
#define il2cpp_field_get_value_object_ptr 0x00323580
|
||||||
|
#define il2cpp_field_has_attribute_ptr 0x00335180
|
||||||
|
#define il2cpp_field_is_literal_ptr 0x00335250
|
||||||
|
#define il2cpp_field_set_value_ptr 0x003351D0
|
||||||
|
#define il2cpp_field_set_value_object_ptr 0x003351E0
|
||||||
|
#define il2cpp_field_static_get_value_ptr 0x00335240
|
||||||
|
#define il2cpp_field_static_set_value_ptr 0x00323C90
|
||||||
|
#define il2cpp_format_exception_ptr 0x00334EB0
|
||||||
|
#define il2cpp_format_stack_trace_ptr 0x00334F40
|
||||||
|
#define il2cpp_free_ptr 0x002D35D0
|
||||||
|
#define il2cpp_free_captured_memory_snapshot_ptr 0x003365D0
|
||||||
|
#define il2cpp_gc_alloc_fixed_ptr 0x00335460
|
||||||
|
#define il2cpp_gc_collect_ptr 0x00335260
|
||||||
|
#define il2cpp_gc_collect_a_little_ptr 0x00335280
|
||||||
|
#define il2cpp_gc_disable_ptr 0x002B2C70
|
||||||
|
#define il2cpp_gc_enable_ptr 0x002B2C20
|
||||||
|
#define il2cpp_gc_foreach_heap_ptr 0x003353D0
|
||||||
|
#define il2cpp_gc_free_fixed_ptr 0x003308E0
|
||||||
|
#define il2cpp_gc_get_heap_size_ptr 0x003353C0
|
||||||
|
#define il2cpp_gc_get_max_time_slice_ns_ptr 0x00335390
|
||||||
|
#define il2cpp_gc_get_used_size_ptr 0x003353B0
|
||||||
|
#define il2cpp_gc_has_strict_wbarriers_ptr 0x000E6340
|
||||||
|
#define il2cpp_gc_is_disabled_ptr 0x003352B0
|
||||||
|
#define il2cpp_gc_is_incremental_ptr 0x00335380
|
||||||
|
#define il2cpp_gc_set_external_allocation_tracker_ptr 0x00003390
|
||||||
|
#define il2cpp_gc_set_external_wbarrier_tracker_ptr 0x00003390
|
||||||
|
#define il2cpp_gc_set_max_time_slice_ns_ptr 0x003353A0
|
||||||
|
#define il2cpp_gc_set_mode_ptr 0x003352C0
|
||||||
|
#define il2cpp_gc_start_incremental_collection_ptr 0x00335290
|
||||||
|
#define il2cpp_gc_wbarrier_set_field_ptr 0x00335500
|
||||||
|
#define il2cpp_gchandle_foreach_get_target_ptr 0x003354D0
|
||||||
|
#define il2cpp_gchandle_free_ptr 0x00335560
|
||||||
|
#define il2cpp_gchandle_get_target_ptr 0x003354C0
|
||||||
|
#define il2cpp_gchandle_new_ptr 0x00335470
|
||||||
|
#define il2cpp_gchandle_new_weakref_ptr 0x00335490
|
||||||
|
#define il2cpp_get_corlib_ptr 0x00334280
|
||||||
|
#define il2cpp_get_exception_argument_null_ptr 0x002DB6E0
|
||||||
|
#define il2cpp_image_get_assembly_ptr 0x000224D0
|
||||||
|
#define il2cpp_image_get_class_ptr 0x00336580
|
||||||
|
#define il2cpp_image_get_class_count_ptr 0x000047A0
|
||||||
|
#define il2cpp_image_get_entry_point_ptr 0x00336560
|
||||||
|
#define il2cpp_image_get_filename_ptr 0x00021660
|
||||||
|
#define il2cpp_image_get_name_ptr 0x00021660
|
||||||
|
#define il2cpp_init_ptr 0x00333EC0
|
||||||
|
#define il2cpp_init_utf16_ptr 0x00333EF0
|
||||||
|
#define il2cpp_is_debugger_attached_ptr 0x003366C0
|
||||||
|
#define il2cpp_is_vm_thread_ptr 0x00335EF0
|
||||||
|
#define il2cpp_method_get_class_ptr 0x00041A20
|
||||||
|
#define il2cpp_method_get_declaring_type_ptr 0x00041A20
|
||||||
|
#define il2cpp_method_get_flags_ptr 0x00335860
|
||||||
|
#define il2cpp_method_get_from_reflection_ptr 0x000224D0
|
||||||
|
#define il2cpp_method_get_name_ptr 0x00024FA0
|
||||||
|
#define il2cpp_method_get_object_ptr 0x003357A0
|
||||||
|
#define il2cpp_method_get_param_ptr 0x003357F0
|
||||||
|
#define il2cpp_method_get_param_count_ptr 0x003357E0
|
||||||
|
#define il2cpp_method_get_param_name_ptr 0x00335870
|
||||||
|
#define il2cpp_method_get_return_type_ptr 0x00041F40
|
||||||
|
#define il2cpp_method_get_token_ptr 0x00255B90
|
||||||
|
#define il2cpp_method_has_attribute_ptr 0x00335810
|
||||||
|
#define il2cpp_method_is_generic_ptr 0x003357B0
|
||||||
|
#define il2cpp_method_is_inflated_ptr 0x003357C0
|
||||||
|
#define il2cpp_method_is_instance_ptr 0x003357D0
|
||||||
|
#define il2cpp_monitor_enter_ptr 0x00335BF0
|
||||||
|
#define il2cpp_monitor_exit_ptr 0x00335C10
|
||||||
|
#define il2cpp_monitor_pulse_ptr 0x00335C20
|
||||||
|
#define il2cpp_monitor_pulse_all_ptr 0x00335C30
|
||||||
|
#define il2cpp_monitor_try_enter_ptr 0x00335C00
|
||||||
|
#define il2cpp_monitor_try_wait_ptr 0x00335C90
|
||||||
|
#define il2cpp_monitor_wait_ptr 0x00335C80
|
||||||
|
#define il2cpp_native_stack_trace_ptr 0x00335060
|
||||||
|
#define il2cpp_object_get_class_ptr 0x00021660
|
||||||
|
#define il2cpp_object_get_size_ptr 0x00335B60
|
||||||
|
#define il2cpp_object_get_virtual_method_ptr 0x00335BC0
|
||||||
|
#define il2cpp_object_header_size_ptr 0x00205760
|
||||||
|
#define il2cpp_object_new_ptr 0x00335BD0
|
||||||
|
#define il2cpp_object_unbox_ptr 0x00260130
|
||||||
|
#define il2cpp_offset_of_array_bounds_in_array_object_header_ptr 0x00205760
|
||||||
|
#define il2cpp_offset_of_array_length_in_array_object_header_ptr 0x00335570
|
||||||
|
#define il2cpp_override_stack_backtrace_ptr 0x00336360
|
||||||
|
#define il2cpp_profiler_install_ptr 0x003358D0
|
||||||
|
#define il2cpp_profiler_install_allocation_ptr 0x00335AA0
|
||||||
|
#define il2cpp_profiler_install_enter_leave_ptr 0x00335A60
|
||||||
|
#define il2cpp_profiler_install_fileio_ptr 0x00335B00
|
||||||
|
#define il2cpp_profiler_install_gc_ptr 0x00335AC0
|
||||||
|
#define il2cpp_profiler_install_thread_ptr 0x00335B20
|
||||||
|
#define il2cpp_profiler_set_events_ptr 0x00335A00
|
||||||
|
#define il2cpp_property_get_flags_ptr 0x000792C0
|
||||||
|
#define il2cpp_property_get_get_method_ptr 0x000224D0
|
||||||
|
#define il2cpp_property_get_name_ptr 0x00003C30
|
||||||
|
#define il2cpp_property_get_parent_ptr 0x00021660
|
||||||
|
#define il2cpp_property_get_set_method_ptr 0x00024FA0
|
||||||
|
#define il2cpp_raise_exception_ptr 0x00334E90
|
||||||
|
#define il2cpp_register_debugger_agent_transport_ptr 0x00003390
|
||||||
|
#define il2cpp_register_log_callback_ptr 0x003366B0
|
||||||
|
#define il2cpp_resolve_icall_ptr 0x003342A0
|
||||||
|
#define il2cpp_runtime_class_init_ptr 0x00335CC0
|
||||||
|
#define il2cpp_runtime_invoke_ptr 0x00335CB0
|
||||||
|
#define il2cpp_runtime_invoke_convert_args_ptr 0x00335CA0
|
||||||
|
#define il2cpp_runtime_object_init_ptr 0x00335CD0
|
||||||
|
#define il2cpp_runtime_object_init_exception_ptr 0x00335CE0
|
||||||
|
#define il2cpp_runtime_unhandled_exception_policy_set_ptr 0x00003390
|
||||||
|
#define il2cpp_set_commandline_arguments_ptr 0x00334080
|
||||||
|
#define il2cpp_set_commandline_arguments_utf16_ptr 0x00334090
|
||||||
|
#define il2cpp_set_config_ptr 0x003341C0
|
||||||
|
#define il2cpp_set_config_dir_ptr 0x00333FF0
|
||||||
|
#define il2cpp_set_config_utf16_ptr 0x003340F0
|
||||||
|
#define il2cpp_set_data_dir_ptr 0x00334020
|
||||||
|
#define il2cpp_set_default_thread_affinity_ptr 0x00003390
|
||||||
|
#define il2cpp_set_find_plugin_callback_ptr 0x003366A0
|
||||||
|
#define il2cpp_set_memory_callbacks_ptr 0x00334250
|
||||||
|
#define il2cpp_set_temp_dir_ptr 0x00334050
|
||||||
|
#define il2cpp_shutdown_ptr 0x00333FE0
|
||||||
|
#define il2cpp_start_gc_world_ptr 0x00335430
|
||||||
|
#define il2cpp_stats_dump_to_file_ptr 0x00334980
|
||||||
|
#define il2cpp_stats_get_value_ptr 0x00334DC0
|
||||||
|
#define il2cpp_stop_gc_world_ptr 0x00335400
|
||||||
|
#define il2cpp_string_chars_ptr 0x00255120
|
||||||
|
#define il2cpp_string_intern_ptr 0x00335D70
|
||||||
|
#define il2cpp_string_is_interned_ptr 0x00335D80
|
||||||
|
#define il2cpp_string_length_ptr 0x00035D80
|
||||||
|
#define il2cpp_string_new_ptr 0x00335CF0
|
||||||
|
#define il2cpp_string_new_len_ptr 0x00335D60
|
||||||
|
#define il2cpp_string_new_utf16_ptr 0x00335D10
|
||||||
|
#define il2cpp_string_new_wrapper_ptr 0x00335CF0
|
||||||
|
#define il2cpp_thread_attach_ptr 0x00335EA0
|
||||||
|
#define il2cpp_thread_current_ptr 0x00335E70
|
||||||
|
#define il2cpp_thread_detach_ptr 0x00335EB0
|
||||||
|
#define il2cpp_thread_get_all_attached_threads_ptr 0x00335ED0
|
||||||
|
#define il2cpp_thread_get_frame_at_ptr 0x00336160
|
||||||
|
#define il2cpp_thread_get_stack_depth_ptr 0x00336280
|
||||||
|
#define il2cpp_thread_get_top_frame_ptr 0x00336060
|
||||||
|
#define il2cpp_thread_walk_frame_stack_ptr 0x00335F60
|
||||||
|
#define il2cpp_type_equals_ptr 0x00336520
|
||||||
|
#define il2cpp_type_get_assembly_qualified_name_ptr 0x00336460
|
||||||
|
#define il2cpp_type_get_attrs_ptr 0x00336510
|
||||||
|
#define il2cpp_type_get_class_or_element_class_ptr 0x00336390
|
||||||
|
#define il2cpp_type_get_name_ptr 0x003363C0
|
||||||
|
#define il2cpp_type_get_name_chunked_ptr 0x00336B80
|
||||||
|
#define il2cpp_type_get_object_ptr 0x00336370
|
||||||
|
#define il2cpp_type_get_type_ptr 0x00336380
|
||||||
|
#define il2cpp_type_is_byref_ptr 0x00336500
|
||||||
|
#define il2cpp_type_is_pointer_type_ptr 0x00336550
|
||||||
|
#define il2cpp_type_is_static_ptr 0x00336540
|
||||||
|
#define il2cpp_unhandled_exception_ptr 0x00335050
|
||||||
|
#define il2cpp_unity_install_unitytls_interface_ptr 0x00336770
|
||||||
|
#define il2cpp_unity_liveness_allocate_struct_ptr 0x00335580
|
||||||
|
#define il2cpp_unity_liveness_calculation_from_root_ptr 0x00335630
|
||||||
|
#define il2cpp_unity_liveness_calculation_from_statics_ptr 0x00335690
|
||||||
|
#define il2cpp_unity_liveness_finalize_ptr 0x003356A0
|
||||||
|
#define il2cpp_unity_liveness_free_struct_ptr 0x00335760
|
||||||
|
#define il2cpp_unity_set_android_network_up_state_func_ptr 0x00003390
|
||||||
|
#define il2cpp_value_box_ptr 0x002DB640
|
||||||
309
appdata/il2cpp-api-functions.h
Normal file
309
appdata/il2cpp-api-functions.h
Normal file
@@ -0,0 +1,309 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Target Unity version: 2021.2.0+
|
||||||
|
|
||||||
|
#ifndef DO_API_NO_RETURN
|
||||||
|
|
||||||
|
#define DO_API_NO_RETURN(r, n, p) DO_API(r,n,p)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_init, (const char* domain_name));
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_init_utf16, (const Il2CppChar * domain_name));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_shutdown, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_config_dir, (const char *config_path));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_data_dir, (const char *data_path));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_temp_dir, (const char *temp_path));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_commandline_arguments, (int argc, const char* const argv[], const char* basedir));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_commandline_arguments_utf16, (int argc, const Il2CppChar * const argv[], const char* basedir));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_config_utf16, (const Il2CppChar * executablePath));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_config, (const char* executablePath));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_set_memory_callbacks, (Il2CppMemoryCallbacks * callbacks));
|
||||||
|
|
||||||
|
DO_API(const Il2CppImage*, il2cpp_get_corlib, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_add_internal_call, (const char* name, Il2CppMethodPointer method));
|
||||||
|
|
||||||
|
DO_API(Il2CppMethodPointer, il2cpp_resolve_icall, (const char* name));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DO_API(void*, il2cpp_alloc, (size_t size));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_free, (void* ptr));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// array
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_array_class_get, (Il2CppClass * element_class, uint32_t rank));
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_array_length, (Il2CppArray * array));
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_array_get_byte_length, (Il2CppArray * array));
|
||||||
|
|
||||||
|
DO_API(Il2CppArray*, il2cpp_array_new, (Il2CppClass * elementTypeInfo, il2cpp_array_size_t length));
|
||||||
|
|
||||||
|
DO_API(Il2CppArray*, il2cpp_array_new_specific, (Il2CppClass * arrayTypeInfo, il2cpp_array_size_t length));
|
||||||
|
|
||||||
|
DO_API(Il2CppArray*, il2cpp_array_new_full, (Il2CppClass * array_class, il2cpp_array_size_t * lengths, il2cpp_array_size_t * lower_bounds));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_bounded_array_class_get, (Il2CppClass * element_class, uint32_t rank, bool bounded));
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_array_element_size, (const Il2CppClass * array_class));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// assembly
|
||||||
|
|
||||||
|
DO_API(const Il2CppImage*, il2cpp_assembly_get_image, (const Il2CppAssembly * assembly));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// class
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_class_for_each, (void(*klassReportFunc)(Il2CppClass* klass, void* userData), void* userData));
|
||||||
|
|
||||||
|
DO_API(const Il2CppType*, il2cpp_class_enum_basetype, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_generic, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_inflated, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_assignable_from, (Il2CppClass * klass, Il2CppClass * oklass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_subclass_of, (Il2CppClass * klass, Il2CppClass * klassc, bool check_interfaces));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_has_parent, (Il2CppClass * klass, Il2CppClass * klassc));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_from_il2cpp_type, (const Il2CppType * type));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_from_name, (const Il2CppImage * image, const char* namespaze, const char *name));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_from_system_type, (Il2CppReflectionType * type));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_get_element_class, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(const EventInfo*, il2cpp_class_get_events, (Il2CppClass * klass, void* *iter));
|
||||||
|
|
||||||
|
DO_API(FieldInfo*, il2cpp_class_get_fields, (Il2CppClass * klass, void* *iter));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_get_nested_types, (Il2CppClass * klass, void* *iter));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_get_interfaces, (Il2CppClass * klass, void* *iter));
|
||||||
|
|
||||||
|
DO_API(const PropertyInfo*, il2cpp_class_get_properties, (Il2CppClass * klass, void* *iter));
|
||||||
|
|
||||||
|
DO_API(const PropertyInfo*, il2cpp_class_get_property_from_name, (Il2CppClass * klass, const char *name));
|
||||||
|
|
||||||
|
DO_API(FieldInfo*, il2cpp_class_get_field_from_name, (Il2CppClass * klass, const char *name));
|
||||||
|
|
||||||
|
DO_API(const MethodInfo*, il2cpp_class_get_methods, (Il2CppClass * klass, void* *iter));
|
||||||
|
|
||||||
|
DO_API(const MethodInfo*, il2cpp_class_get_method_from_name, (Il2CppClass * klass, const char* name, int argsCount));
|
||||||
|
|
||||||
|
DO_API(const char*, il2cpp_class_get_name, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_type_get_name_chunked, (const Il2CppType * type, void(*chunkReportFunc)(void* data, void* userData), void* userData));
|
||||||
|
|
||||||
|
DO_API(const char*, il2cpp_class_get_namespace, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_get_parent, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_get_declaring_type, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(int32_t, il2cpp_class_instance_size, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(size_t, il2cpp_class_num_fields, (const Il2CppClass * enumKlass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_valuetype, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(int32_t, il2cpp_class_value_size, (Il2CppClass * klass, uint32_t * align));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_blittable, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_class_get_flags, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_abstract, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_interface, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_class_array_element_size, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_class_from_type, (const Il2CppType * type));
|
||||||
|
|
||||||
|
DO_API(const Il2CppType*, il2cpp_class_get_type, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_class_get_type_token, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_has_attribute, (Il2CppClass * klass, Il2CppClass * attr_class));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_has_references, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_class_is_enum, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(const Il2CppImage*, il2cpp_class_get_image, (Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(const char*, il2cpp_class_get_assemblyname, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_class_get_rank, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_class_get_data_size, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(void*, il2cpp_class_get_static_field_data, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// testing only
|
||||||
|
|
||||||
|
DO_API(size_t, il2cpp_class_get_bitmap_size, (const Il2CppClass * klass));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_class_get_bitmap, (Il2CppClass * klass, size_t * bitmap));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// stats
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_stats_dump_to_file, (const char *path));
|
||||||
|
|
||||||
|
DO_API(uint64_t, il2cpp_stats_get_value, (Il2CppStat stat));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// domain
|
||||||
|
|
||||||
|
DO_API(Il2CppDomain*, il2cpp_domain_get, ());
|
||||||
|
|
||||||
|
DO_API(const Il2CppAssembly*, il2cpp_domain_assembly_open, (Il2CppDomain * domain, const char* name));
|
||||||
|
|
||||||
|
DO_API(const Il2CppAssembly**, il2cpp_domain_get_assemblies, (const Il2CppDomain * domain, size_t * size));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// exception
|
||||||
|
|
||||||
|
DO_API_NO_RETURN(void, il2cpp_raise_exception, (Il2CppException*));
|
||||||
|
|
||||||
|
DO_API(Il2CppException*, il2cpp_exception_from_name_msg, (const Il2CppImage * image, const char *name_space, const char *name, const char *msg));
|
||||||
|
|
||||||
|
DO_API(Il2CppException*, il2cpp_get_exception_argument_null, (const char *arg));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_format_exception, (const Il2CppException * ex, char* message, int message_size));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_format_stack_trace, (const Il2CppException * ex, char* output, int output_size));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_unhandled_exception, (Il2CppException*));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_native_stack_trace, (const Il2CppException * ex, uintptr_t** addresses, int* numFrames, char** imageUUID, char** imageName));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// field
|
||||||
|
|
||||||
|
DO_API(int, il2cpp_field_get_flags, (FieldInfo * field));
|
||||||
|
|
||||||
|
DO_API(const char*, il2cpp_field_get_name, (FieldInfo * field));
|
||||||
|
|
||||||
|
DO_API(Il2CppClass*, il2cpp_field_get_parent, (FieldInfo * field));
|
||||||
|
|
||||||
|
DO_API(size_t, il2cpp_field_get_offset, (FieldInfo * field));
|
||||||
|
|
||||||
|
DO_API(const Il2CppType*, il2cpp_field_get_type, (FieldInfo * field));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_field_get_value, (Il2CppObject * obj, FieldInfo * field, void *value));
|
||||||
|
|
||||||
|
DO_API(Il2CppObject*, il2cpp_field_get_value_object, (FieldInfo * field, Il2CppObject * obj));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_field_has_attribute, (FieldInfo * field, Il2CppClass * attr_class));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_field_set_value, (Il2CppObject * obj, FieldInfo * field, void *value));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_field_static_get_value, (FieldInfo * field, void *value));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_field_static_set_value, (FieldInfo * field, void *value));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_field_set_value_object, (Il2CppObject * instance, FieldInfo * field, Il2CppObject * value));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_field_is_literal, (FieldInfo * field));
|
||||||
|
|
||||||
|
// gc
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_collect, (int maxGenerations));
|
||||||
|
|
||||||
|
DO_API(int32_t, il2cpp_gc_collect_a_little, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_start_incremental_collection , ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_disable, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_enable, ());
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_gc_is_disabled, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_set_mode, (Il2CppGCMode mode));
|
||||||
|
|
||||||
|
DO_API(int64_t, il2cpp_gc_get_max_time_slice_ns, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_set_max_time_slice_ns, (int64_t maxTimeSlice));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_gc_is_incremental, ());
|
||||||
|
|
||||||
|
DO_API(int64_t, il2cpp_gc_get_used_size, ());
|
||||||
|
|
||||||
|
DO_API(int64_t, il2cpp_gc_get_heap_size, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_wbarrier_set_field, (Il2CppObject * obj, void **targetAddress, void *object));
|
||||||
|
|
||||||
|
DO_API(bool, il2cpp_gc_has_strict_wbarriers, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_set_external_allocation_tracker, (void(*func)(void*, size_t, int)));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_set_external_wbarrier_tracker, (void(*func)(void**)));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_foreach_heap, (void(*func)(void* data, void* userData), void* userData));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_stop_gc_world, ());
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_start_gc_world, ());
|
||||||
|
|
||||||
|
DO_API(void*, il2cpp_gc_alloc_fixed, (size_t size));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gc_free_fixed, (void* address));
|
||||||
|
|
||||||
|
// gchandle
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_gchandle_new, (Il2CppObject * obj, bool pinned));
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_gchandle_new_weakref, (Il2CppObject * obj, bool track_resurrection));
|
||||||
|
|
||||||
|
DO_API(Il2CppObject*, il2cpp_gchandle_get_target , (uint32_t gchandle));
|
||||||
|
|
||||||
|
DO_API(void, il2cpp_gchandle_free, (uint32_t gchandle));
|
||||||
|
|
||||||
|
DO_API(void , il2cpp_gchandle_foreach_get_target, (void(*func)(void* data, void* userData), void* userData));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vm runtime info
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_object_header_size, ());
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_array_object_header_size, ());
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_offset_of_array_length_in_array_object_header, ());
|
||||||
|
|
||||||
|
DO_API(uint32_t, il2cpp_offset_of_array_bounds_in_array_object_header, ());
|
||||||
|
|
||||||
219514
appdata/il2cpp-functions.h
Normal file
219514
appdata/il2cpp-functions.h
Normal file
File diff suppressed because it is too large
Load Diff
4
appdata/il2cpp-metadata-version.h
Normal file
4
appdata/il2cpp-metadata-version.h
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Target Unity version: 2021.2.0+
|
||||||
|
|
||||||
|
#define __IL2CPP_METADATA_VERSION 290
|
||||||
2643
appdata/il2cpp-types-ptr.h
Normal file
2643
appdata/il2cpp-types-ptr.h
Normal file
File diff suppressed because it is too large
Load Diff
1437635
appdata/il2cpp-types.h
Normal file
1437635
appdata/il2cpp-types.h
Normal file
File diff suppressed because it is too large
Load Diff
27
framework/dllmain.cpp
Normal file
27
framework/dllmain.cpp
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// DLL entry point
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#include "il2cpp-init.h"
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// DLL entry point
|
||||||
|
BOOL APIENTRY DllMain( HMODULE hModule,
|
||||||
|
DWORD ul_reason_for_call,
|
||||||
|
LPVOID lpReserved
|
||||||
|
)
|
||||||
|
{
|
||||||
|
switch (ul_reason_for_call)
|
||||||
|
{
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
init_il2cpp();
|
||||||
|
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) Run, NULL, 0, NULL);
|
||||||
|
break;
|
||||||
|
case DLL_THREAD_ATTACH:
|
||||||
|
case DLL_THREAD_DETACH:
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
50
framework/helpers.cpp
Normal file
50
framework/helpers.cpp
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Helper functions
|
||||||
|
|
||||||
|
#include "pch-il2cpp.h"
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#include <string>
|
||||||
|
#include <codecvt>
|
||||||
|
#include "helpers.h"
|
||||||
|
|
||||||
|
// Log file location
|
||||||
|
extern const LPCWSTR LOG_FILE;
|
||||||
|
|
||||||
|
// Helper function to get the module base address
|
||||||
|
uintptr_t il2cppi_get_base_address() {
|
||||||
|
return (uintptr_t) GetModuleHandleW(L"GameAssembly.dll");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helper function to append text to a file
|
||||||
|
void il2cppi_log_write(std::string text) {
|
||||||
|
HANDLE hfile = CreateFileW(LOG_FILE, FILE_APPEND_DATA, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
|
|
||||||
|
if (hfile == INVALID_HANDLE_VALUE)
|
||||||
|
MessageBoxW(0, L"Could not open log file", 0, 0);
|
||||||
|
|
||||||
|
DWORD written;
|
||||||
|
WriteFile(hfile, text.c_str(), (DWORD) text.length(), &written, NULL);
|
||||||
|
WriteFile(hfile, "\r\n", 2, &written, NULL);
|
||||||
|
CloseHandle(hfile);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helper function to open a new console window and redirect stdout there
|
||||||
|
void il2cppi_new_console() {
|
||||||
|
AllocConsole();
|
||||||
|
freopen_s((FILE**) stdout, "CONOUT$", "w", stdout);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if _MSC_VER >= 1920
|
||||||
|
// Helper function to convert Il2CppString to std::string
|
||||||
|
std::string il2cppi_to_string(Il2CppString* str) {
|
||||||
|
std::u16string u16(reinterpret_cast<const char16_t*>(str->chars));
|
||||||
|
return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>{}.to_bytes(u16);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helper function to convert System.String to std::string
|
||||||
|
std::string il2cppi_to_string(app::String* str) {
|
||||||
|
return il2cppi_to_string(reinterpret_cast<Il2CppString*>(str));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
44
framework/helpers.h
Normal file
44
framework/helpers.h
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Helper functions
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <sstream>
|
||||||
|
#include <iomanip>
|
||||||
|
|
||||||
|
#include "il2cpp-metadata-version.h"
|
||||||
|
|
||||||
|
// Helper function to get the module base address
|
||||||
|
uintptr_t il2cppi_get_base_address();
|
||||||
|
|
||||||
|
// Helper function to append text to a file
|
||||||
|
void il2cppi_log_write(std::string text);
|
||||||
|
|
||||||
|
// Helper function to open a new console window and redirect stdout there
|
||||||
|
void il2cppi_new_console();
|
||||||
|
|
||||||
|
#if _MSC_VER >= 1920
|
||||||
|
// Helper function to convert Il2CppString to std::string
|
||||||
|
std::string il2cppi_to_string(Il2CppString* str);
|
||||||
|
|
||||||
|
// Helper function to convert System.String to std::string
|
||||||
|
std::string il2cppi_to_string(app::String* str);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Helper function to check if a metadata usage pointer is initialized
|
||||||
|
template<typename T> bool il2cppi_is_initialized(T* metadataItem) {
|
||||||
|
#if __IL2CPP_METADATA_VERISON < 270
|
||||||
|
return *metadataItem != 0;
|
||||||
|
#else
|
||||||
|
// Metadata >=27 (Unity 2020.2)
|
||||||
|
return !((uintptr_t) *metadataItem & 1);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helper function to convert a pointer to hex
|
||||||
|
template<typename T> std::string to_hex_string(T i) {
|
||||||
|
std::stringstream stream;
|
||||||
|
stream << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << std::hex << i;
|
||||||
|
return stream.str();
|
||||||
|
}
|
||||||
33
framework/il2cpp-appdata.h
Normal file
33
framework/il2cpp-appdata.h
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// IL2CPP application data
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
// Application-specific types
|
||||||
|
#include "il2cpp-types.h"
|
||||||
|
|
||||||
|
// IL2CPP API function pointers
|
||||||
|
#include "il2cpp-api-functions-ptr.h"
|
||||||
|
|
||||||
|
// IL2CPP APIs
|
||||||
|
#define DO_API(r, n, p) extern r (*n) p
|
||||||
|
#include "il2cpp-api-functions.h"
|
||||||
|
#undef DO_API
|
||||||
|
|
||||||
|
// Application-specific functions
|
||||||
|
#define DO_APP_FUNC(a, r, n, p) extern r (*n) p
|
||||||
|
#define DO_APP_FUNC_METHODINFO(a, n) extern struct MethodInfo ** n
|
||||||
|
namespace app {
|
||||||
|
#include "il2cpp-functions.h"
|
||||||
|
}
|
||||||
|
#undef DO_APP_FUNC
|
||||||
|
#undef DO_APP_FUNC_METHODINFO
|
||||||
|
|
||||||
|
// TypeInfo pointers
|
||||||
|
#define DO_TYPEDEF(a, n) extern n ## __Class** n ## __TypeInfo
|
||||||
|
namespace app {
|
||||||
|
#include "il2cpp-types-ptr.h"
|
||||||
|
}
|
||||||
|
#undef DO_TYPEDEF
|
||||||
55
framework/il2cpp-init.cpp
Normal file
55
framework/il2cpp-init.cpp
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// IL2CPP application initializer
|
||||||
|
|
||||||
|
#include "pch-il2cpp.h"
|
||||||
|
|
||||||
|
#include "il2cpp-appdata.h"
|
||||||
|
#include "il2cpp-init.h"
|
||||||
|
#include "helpers.h"
|
||||||
|
|
||||||
|
// IL2CPP APIs
|
||||||
|
#define DO_API(r, n, p) r (*n) p
|
||||||
|
#include "il2cpp-api-functions.h"
|
||||||
|
#undef DO_API
|
||||||
|
|
||||||
|
// Application-specific functions
|
||||||
|
#define DO_APP_FUNC(a, r, n, p) r (*n) p
|
||||||
|
#define DO_APP_FUNC_METHODINFO(a, n) struct MethodInfo ** n
|
||||||
|
namespace app {
|
||||||
|
#include "il2cpp-functions.h"
|
||||||
|
}
|
||||||
|
#undef DO_APP_FUNC
|
||||||
|
#undef DO_APP_FUNC_METHODINFO
|
||||||
|
|
||||||
|
// TypeInfo pointers
|
||||||
|
#define DO_TYPEDEF(a, n) n ## __Class** n ## __TypeInfo
|
||||||
|
namespace app {
|
||||||
|
#include "il2cpp-types-ptr.h"
|
||||||
|
}
|
||||||
|
#undef DO_TYPEDEF
|
||||||
|
|
||||||
|
// IL2CPP application initializer
|
||||||
|
void init_il2cpp()
|
||||||
|
{
|
||||||
|
// Get base address of IL2CPP module
|
||||||
|
uintptr_t baseAddress = il2cppi_get_base_address();
|
||||||
|
|
||||||
|
using namespace app;
|
||||||
|
|
||||||
|
// Define IL2CPP API function addresses
|
||||||
|
#define DO_API(r, n, p) n = (r (*) p)(baseAddress + n ## _ptr)
|
||||||
|
#include "il2cpp-api-functions.h"
|
||||||
|
#undef DO_API
|
||||||
|
|
||||||
|
// Define function addresses
|
||||||
|
#define DO_APP_FUNC(a, r, n, p) n = (r (*) p)(baseAddress + a)
|
||||||
|
#define DO_APP_FUNC_METHODINFO(a, n) n = (struct MethodInfo **)(baseAddress + a)
|
||||||
|
#include "il2cpp-functions.h"
|
||||||
|
#undef DO_APP_FUNC
|
||||||
|
#undef DO_APP_FUNC_METHODINFO
|
||||||
|
|
||||||
|
// Define TypeInfo variables
|
||||||
|
#define DO_TYPEDEF(a, n) n ## __TypeInfo = (n ## __Class**) (baseAddress + a);
|
||||||
|
#include "il2cpp-types-ptr.h"
|
||||||
|
#undef DO_TYPEDEF
|
||||||
|
}
|
||||||
7
framework/il2cpp-init.h
Normal file
7
framework/il2cpp-init.h
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// IL2CPP application initializer
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// IL2CPP application initializer
|
||||||
|
void init_il2cpp();
|
||||||
5
framework/pch-il2cpp.cpp
Normal file
5
framework/pch-il2cpp.cpp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
// pch.cpp: source file corresponding to the pre-compiled header
|
||||||
|
|
||||||
|
#include "pch-il2cpp.h"
|
||||||
|
|
||||||
|
// When you are using pre-compiled headers, this source file is necessary for compilation to succeed.
|
||||||
13
framework/pch-il2cpp.h
Normal file
13
framework/pch-il2cpp.h
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
// pch.h: This is a precompiled header file.
|
||||||
|
// Files listed below are compiled only once, improving build performance for future builds.
|
||||||
|
// This also affects IntelliSense performance, including code completion and many code browsing features.
|
||||||
|
// However, files listed here are ALL re-compiled if any one of them is updated between builds.
|
||||||
|
// Do not add files here that you will be updating frequently as this negates the performance advantage.
|
||||||
|
|
||||||
|
#ifndef PCH_IL2CPP_H
|
||||||
|
#define PCH_IL2CPP_H
|
||||||
|
|
||||||
|
// add headers that you want to pre-compile here
|
||||||
|
#include "il2cpp-appdata.h"
|
||||||
|
|
||||||
|
#endif //PCH_IL2CPP_H
|
||||||
22
lib/object.cpp
Normal file
22
lib/object.cpp
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#include "pch-il2cpp.h"
|
||||||
|
|
||||||
|
#include "object.h"
|
||||||
|
#include "helpers.h"
|
||||||
|
|
||||||
|
app::GameObject* GameObject::FindWithTag(const char* tag)
|
||||||
|
{
|
||||||
|
Il2CppString* newStr = il2cpp_string_new(tag);
|
||||||
|
app::String* convert_to_appString = reinterpret_cast<app::String*>(newStr);
|
||||||
|
|
||||||
|
if (app::GameObject_FindWithTag(convert_to_appString, nullptr)) {
|
||||||
|
return app::GameObject_FindWithTag(convert_to_appString, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
inline T* GameObject::GetComponent()
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
16
lib/object.h
Normal file
16
lib/object.h
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class GameObject {
|
||||||
|
public:
|
||||||
|
GameObject() = default;
|
||||||
|
|
||||||
|
app::GameObject* FindWithTag(const char* tag);
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
T* GetComponent();
|
||||||
|
private:
|
||||||
|
app::GameObject* _currentGameObject = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
52
lib/wrapper.cpp
Normal file
52
lib/wrapper.cpp
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
#include "pch-il2cpp.h"
|
||||||
|
|
||||||
|
#include "wrapper.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
Wrapper::Wrapper()
|
||||||
|
{
|
||||||
|
const Il2CppDomain* domain = il2cpp_domain_get();
|
||||||
|
|
||||||
|
const Il2CppAssembly** assemblies;
|
||||||
|
size_t size;
|
||||||
|
|
||||||
|
assemblies = il2cpp_domain_get_assemblies(domain, &size);
|
||||||
|
|
||||||
|
assemblyMap.clear();
|
||||||
|
|
||||||
|
for (size_t i = 0; i < size; ++i) {
|
||||||
|
const Il2CppAssembly* assembly = assemblies[i];
|
||||||
|
|
||||||
|
if (assembly) {
|
||||||
|
const char* assemblyName = il2cpp_image_get_name(assembly->image);
|
||||||
|
assemblyMap[assemblyName] = assembly;
|
||||||
|
std::cout << "\t- " << assemblyName << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const Il2CppAssembly* Wrapper::GetAssembly(const char* _assembly) {
|
||||||
|
for (const auto& entry : assemblyMap) {
|
||||||
|
if (strcmp(entry.first, _assembly) == 0) {
|
||||||
|
return entry.second;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Il2CppImage* Wrapper::GetImage(const char* _assembly) {
|
||||||
|
for (const auto& entry : assemblyMap) {
|
||||||
|
if (strcmp(entry.first, _assembly) == 0) {
|
||||||
|
return entry.second->image;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
Il2CppObject* Wrapper::GetObjectFromClass(const Il2CppImage* _image, const char* _namespaze, const char* _name)
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
15
lib/wrapper.h
Normal file
15
lib/wrapper.h
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
class Wrapper {
|
||||||
|
public:
|
||||||
|
Wrapper();
|
||||||
|
|
||||||
|
const Il2CppAssembly* GetAssembly(const char* _assembly);
|
||||||
|
const Il2CppImage* GetImage(const char* _assembly);
|
||||||
|
|
||||||
|
Il2CppObject* GetObjectFromClass(const Il2CppImage* _image, const char* _namespaze, const char* _name);
|
||||||
|
private:
|
||||||
|
std::map<const char*, const Il2CppAssembly*> assemblyMap;
|
||||||
|
};
|
||||||
43
user/main.cpp
Normal file
43
user/main.cpp
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Custom injected code entry point
|
||||||
|
|
||||||
|
#include "pch-il2cpp.h"
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <Windows.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include "il2cpp-appdata.h"
|
||||||
|
#include "helpers.h"
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
|
#include "wrapper.h"
|
||||||
|
#include "object.h"
|
||||||
|
|
||||||
|
// Set the name of your log file here
|
||||||
|
extern const LPCWSTR LOG_FILE = L"DevourClient.txt";
|
||||||
|
|
||||||
|
// Custom injected code entry point
|
||||||
|
void Run()
|
||||||
|
{
|
||||||
|
// Initialize thread data - DO NOT REMOVE
|
||||||
|
il2cpp_thread_attach(il2cpp_domain_get());
|
||||||
|
|
||||||
|
// If you would like to write to a log file, specify the name above and use il2cppi_log_write()
|
||||||
|
il2cppi_log_write("Initializg..");
|
||||||
|
|
||||||
|
// If you would like to output to a new console window, use il2cppi_new_console() to open one and redirect stdout
|
||||||
|
il2cppi_new_console();
|
||||||
|
|
||||||
|
Wrapper* wrapper = new Wrapper();
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
if (GetAsyncKeyState(VK_F1) & 0x8000) {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||||
|
}
|
||||||
|
}
|
||||||
7
user/main.h
Normal file
7
user/main.h
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
// Generated C++ file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty
|
||||||
|
// Custom injected code entry point
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Custom injected code entry point
|
||||||
|
void Run();
|
||||||
Reference in New Issue
Block a user