Browse Source

Moved the debug write of generated assembly

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
b40a8e3b02
2 changed files with 5 additions and 4 deletions
  1. +5
    -0
      IPA.Injector/Injector.cs
  2. +0
    -4
      IPA.Loader/Loader/PluginComponent.cs

+ 5
- 0
IPA.Injector/Injector.cs View File

@ -305,6 +305,11 @@ namespace IPA.Injector
/*if (otherNewtonsoftJson != null) /*if (otherNewtonsoftJson != null)
Assembly.LoadFrom(otherNewtonsoftJson);*/ Assembly.LoadFrom(otherNewtonsoftJson);*/
#if DEBUG
Config.Stores.GeneratedStore.DebugSaveAssembly("GeneratedAssembly.dll");
#endif
Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type) Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type)
{ {
var level = UnityLogRedirector.LogTypeToLevel(type); var level = UnityLogRedirector.LogTypeToLevel(type);


+ 0
- 4
IPA.Loader/Loader/PluginComponent.cs View File

@ -78,10 +78,6 @@ namespace IPA.Loader
ConfigRuntime.SaveAll(); ConfigRuntime.SaveAll();
#if DEBUG
Config.Stores.GeneratedStore.DebugSaveAssembly("GeneratedAssembly.dll");
#endif
quitting = true; quitting = true;
} }


Loading…
Cancel
Save