C++: Output *__TypeInfo double-indirected to avoid having to call init_il2cpp() repeatedly
This commit is contained in:
@@ -307,8 +307,7 @@ namespace Il2CppInspector.Properties {
|
|||||||
/// <Filter>framework</Filter>
|
/// <Filter>framework</Filter>
|
||||||
/// </ClCompile>
|
/// </ClCompile>
|
||||||
/// <ClCompile Include="framework\il2cpp-init.cpp">
|
/// <ClCompile Include="framework\il2cpp-init.cpp">
|
||||||
/// <Filter>framework</Filter>
|
/// <Filter>framework< [rest of string was truncated]";.
|
||||||
/// [rest of string was truncated]";.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string CppProjFilters {
|
internal static string CppProjFilters {
|
||||||
get {
|
get {
|
||||||
@@ -328,7 +327,7 @@ namespace Il2CppInspector.Properties {
|
|||||||
/// <Configuration>Release</Configuration>
|
/// <Configuration>Release</Configuration>
|
||||||
/// <Platform>Win32</Platform>
|
/// <Platform>Win32</Platform>
|
||||||
/// </ProjectConfiguration>
|
/// </ProjectConfiguration>
|
||||||
/// <ProjectConfiguration [rest of string was truncated]";.
|
/// <ProjectCon [rest of string was truncated]";.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string CppProjTemplate {
|
internal static string CppProjTemplate {
|
||||||
get {
|
get {
|
||||||
|
|||||||
@@ -314,6 +314,7 @@ void Run()
|
|||||||
<ClInclude Include="appdata\il2cpp-api-functions.h" />
|
<ClInclude Include="appdata\il2cpp-api-functions.h" />
|
||||||
<ClInclude Include="appdata\il2cpp-api-functions-ptr.h" />
|
<ClInclude Include="appdata\il2cpp-api-functions-ptr.h" />
|
||||||
<ClInclude Include="appdata\il2cpp-functions.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-ptr.h" />
|
||||||
<ClInclude Include="appdata\il2cpp-types.h" />
|
<ClInclude Include="appdata\il2cpp-types.h" />
|
||||||
<ClInclude Include="framework\helpers.h" />
|
<ClInclude Include="framework\helpers.h" />
|
||||||
@@ -1180,7 +1181,7 @@ namespace app {
|
|||||||
#undef DO_APP_FUNC
|
#undef DO_APP_FUNC
|
||||||
|
|
||||||
// TypeInfo pointers
|
// TypeInfo pointers
|
||||||
#define DO_TYPEDEF(a, n) extern n ## __Class* n ## __TypeInfo
|
#define DO_TYPEDEF(a, n) extern n ## __Class** n ## __TypeInfo
|
||||||
namespace app {
|
namespace app {
|
||||||
#include "il2cpp-types-ptr.h"
|
#include "il2cpp-types-ptr.h"
|
||||||
}
|
}
|
||||||
@@ -1209,7 +1210,7 @@ namespace app {
|
|||||||
#undef DO_APP_FUNC
|
#undef DO_APP_FUNC
|
||||||
|
|
||||||
// TypeInfo pointers
|
// TypeInfo pointers
|
||||||
#define DO_TYPEDEF(a, n) n ## __Class* n ## __TypeInfo
|
#define DO_TYPEDEF(a, n) n ## __Class** n ## __TypeInfo
|
||||||
namespace app {
|
namespace app {
|
||||||
#include "il2cpp-types-ptr.h"
|
#include "il2cpp-types-ptr.h"
|
||||||
}
|
}
|
||||||
@@ -1234,7 +1235,7 @@ void init_il2cpp()
|
|||||||
#undef DO_APP_FUNC
|
#undef DO_APP_FUNC
|
||||||
|
|
||||||
// Define TypeInfo variables
|
// Define TypeInfo variables
|
||||||
#define DO_TYPEDEF(a, n) n ## __TypeInfo = *(n ## __Class**) (baseAddress + a);
|
#define DO_TYPEDEF(a, n) n ## __TypeInfo = (n ## __Class**) (baseAddress + a);
|
||||||
#include "il2cpp-types-ptr.h"
|
#include "il2cpp-types-ptr.h"
|
||||||
#undef DO_TYPEDEF
|
#undef DO_TYPEDEF
|
||||||
}</value>
|
}</value>
|
||||||
@@ -1303,6 +1304,9 @@ void Run();</value>
|
|||||||
<ClInclude Include="appdata\il2cpp-functions.h">
|
<ClInclude Include="appdata\il2cpp-functions.h">
|
||||||
<Filter>appdata</Filter>
|
<Filter>appdata</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="appdata\il2cpp-metadata-version.h">
|
||||||
|
<Filter>appdata</Filter>
|
||||||
|
</ClInclude>
|
||||||
<ClInclude Include="appdata\il2cpp-types.h">
|
<ClInclude Include="appdata\il2cpp-types.h">
|
||||||
<Filter>appdata</Filter>
|
<Filter>appdata</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
|||||||
Reference in New Issue
Block a user