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; }