C++: Add il2cpp_thread_attach in Run()
This commit is contained in:
@@ -238,7 +238,8 @@ namespace Il2CppInspector.Properties {
|
|||||||
///// Custom injected code entry point
|
///// Custom injected code entry point
|
||||||
///void Run()
|
///void Run()
|
||||||
///{
|
///{
|
||||||
/// // If you would like to write to a log file, specify the name above and u [rest of string was truncated]";.
|
/// // Initialize thread data - DO NOT REMOVE
|
||||||
|
/// il2cpp_thread_attach(il2cpp [rest of string was truncated]";.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string Cpp_MainCpp {
|
internal static string Cpp_MainCpp {
|
||||||
get {
|
get {
|
||||||
|
|||||||
@@ -273,6 +273,9 @@ extern const LPCWSTR LOG_FILE = L"il2cpp-log.txt";
|
|||||||
// Custom injected code entry point
|
// Custom injected code entry point
|
||||||
void Run()
|
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()
|
// If you would like to write to a log file, specify the name above and use il2cppi_log_write()
|
||||||
// il2cppi_log_write("Startup");
|
// il2cppi_log_write("Startup");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user