From b40a8e3b0218c72f2b83cf05846b9b1d97591930 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Mon, 9 Dec 2019 21:23:07 -0600 Subject: [PATCH] Moved the debug write of generated assembly --- IPA.Injector/Injector.cs | 5 +++++ IPA.Loader/Loader/PluginComponent.cs | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index 84aa0183..70b8ec3f 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -305,6 +305,11 @@ namespace IPA.Injector /*if (otherNewtonsoftJson != null) Assembly.LoadFrom(otherNewtonsoftJson);*/ +#if DEBUG + Config.Stores.GeneratedStore.DebugSaveAssembly("GeneratedAssembly.dll"); +#endif + + Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type) { var level = UnityLogRedirector.LogTypeToLevel(type); diff --git a/IPA.Loader/Loader/PluginComponent.cs b/IPA.Loader/Loader/PluginComponent.cs index 54fab9d4..92bfe8b9 100644 --- a/IPA.Loader/Loader/PluginComponent.cs +++ b/IPA.Loader/Loader/PluginComponent.cs @@ -78,10 +78,6 @@ namespace IPA.Loader ConfigRuntime.SaveAll(); -#if DEBUG - Config.Stores.GeneratedStore.DebugSaveAssembly("GeneratedAssembly.dll"); -#endif - quitting = true; }