C++: Add il2cpp_thread_attach in Run()
This commit is contained in:
@@ -238,7 +238,8 @@ namespace Il2CppInspector.Properties {
|
||||
///// Custom injected code entry point
|
||||
///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>
|
||||
internal static string Cpp_MainCpp {
|
||||
get {
|
||||
|
||||
@@ -273,6 +273,9 @@ extern const LPCWSTR LOG_FILE = L"il2cpp-log.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("Startup");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user