Browse Source

Formatting

4.0.0-beta
Anairkoen Schno 4 years ago
parent
commit
e6ee72e077
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Injector/Injector.cs

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

@ -62,13 +62,13 @@ namespace IPA.Injector
// this is weird, but it prevents Mono from having issues loading the type.
// IMPORTANT: NO CALLS TO ANY LOGGER CAN HAPPEN BEFORE THIS
var unused = StandardLogger.PrintFilter;
#region // Above hack explaination
#region // Above hack explaination
/*
* Due to an unknown bug in the version of Mono that Unity uses, if the first access to StandardLogger
* is a call to a constructor, then Mono fails to load the type correctly. However, if the first access is to
* the above static property (or maybe any, but I don't really know) it behaves as expected and works fine.
*/
#endregion
#endregion
log.Debug("Initializing logger");


Loading…
Cancel
Save