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>
|
||||
/// </ClCompile>
|
||||
/// <ClCompile Include="framework\il2cpp-init.cpp">
|
||||
/// <Filter>framework</Filter>
|
||||
/// [rest of string was truncated]";.
|
||||
/// <Filter>framework< [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string CppProjFilters {
|
||||
get {
|
||||
@@ -328,7 +327,7 @@ namespace Il2CppInspector.Properties {
|
||||
/// <Configuration>Release</Configuration>
|
||||
/// <Platform>Win32</Platform>
|
||||
/// </ProjectConfiguration>
|
||||
/// <ProjectConfiguration [rest of string was truncated]";.
|
||||
/// <ProjectCon [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string CppProjTemplate {
|
||||
get {
|
||||
|
||||
@@ -314,6 +314,7 @@ void Run()
|
||||
<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" />
|
||||
@@ -1180,7 +1181,7 @@ namespace app {
|
||||
#undef DO_APP_FUNC
|
||||
|
||||
// TypeInfo pointers
|
||||
#define DO_TYPEDEF(a, n) extern n ## __Class* n ## __TypeInfo
|
||||
#define DO_TYPEDEF(a, n) extern n ## __Class** n ## __TypeInfo
|
||||
namespace app {
|
||||
#include "il2cpp-types-ptr.h"
|
||||
}
|
||||
@@ -1209,7 +1210,7 @@ namespace app {
|
||||
#undef DO_APP_FUNC
|
||||
|
||||
// TypeInfo pointers
|
||||
#define DO_TYPEDEF(a, n) n ## __Class* n ## __TypeInfo
|
||||
#define DO_TYPEDEF(a, n) n ## __Class** n ## __TypeInfo
|
||||
namespace app {
|
||||
#include "il2cpp-types-ptr.h"
|
||||
}
|
||||
@@ -1234,7 +1235,7 @@ void init_il2cpp()
|
||||
#undef DO_APP_FUNC
|
||||
|
||||
// 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"
|
||||
#undef DO_TYPEDEF
|
||||
}</value>
|
||||
@@ -1303,6 +1304,9 @@ void Run();</value>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user