C++: Add il2cpp_thread_attach in Run()
This commit is contained in:
@@ -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