Browse Source

Fix Unity logging not being redirected when off-main thread

pull/100/head
Meivyn 1 year ago
parent
commit
e8ee5d60d8
No known key found for this signature in database GPG Key ID: 8BDD3E48158B2F71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Injector/Injector.cs

+ 1
- 1
IPA.Injector/Injector.cs View File

@ -305,7 +305,7 @@ namespace IPA.Injector
if (bootstrapped) return; if (bootstrapped) return;
bootstrapped = true; bootstrapped = true;
Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type)
Application.logMessageReceivedThreaded += delegate (string condition, string stackTrace, LogType type)
{ {
var level = UnityLogRedirector.LogTypeToLevel(type); var level = UnityLogRedirector.LogTypeToLevel(type);
UnityLogProvider.UnityLogger.Log(level, $"{condition}"); UnityLogProvider.UnityLogger.Log(level, $"{condition}");


Loading…
Cancel
Save