From f046a6357621f5954987794db80e00e94080f2b7 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Fri, 28 Feb 2020 16:09:24 -0600 Subject: [PATCH] Moved Debug assembly save --- IPA.Injector/Injector.cs | 4 ---- IPA.Loader/Loader/PluginComponent.cs | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index 4544df6e..c7c554fd 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -334,10 +334,6 @@ namespace IPA.Injector log.Debug("Plugins loaded"); log.Debug(string.Join(", ", PluginLoader.PluginsMetadata.StrJP())); PluginComponent.Create(); - -#if DEBUG - Config.Stores.GeneratedStoreImpl.DebugSaveAssembly("GeneratedAssembly.dll"); -#endif } } } \ No newline at end of file diff --git a/IPA.Loader/Loader/PluginComponent.cs b/IPA.Loader/Loader/PluginComponent.cs index 3bfaa349..e6bbd98e 100644 --- a/IPA.Loader/Loader/PluginComponent.cs +++ b/IPA.Loader/Loader/PluginComponent.cs @@ -53,7 +53,11 @@ namespace IPA.Loader if (!unitySched.IsRunning) StartCoroutine(unitySched.Coroutine()); - initialized = true; + initialized = true; + +#if DEBUG + Config.Stores.GeneratedStoreImpl.DebugSaveAssembly("GeneratedAssembly.dll"); +#endif } }