diff --git a/IPA.Loader/Loader/PluginComponent.cs b/IPA.Loader/Loader/PluginComponent.cs index fab8830c..c0fcf8d0 100644 --- a/IPA.Loader/Loader/PluginComponent.cs +++ b/IPA.Loader/Loader/PluginComponent.cs @@ -30,7 +30,9 @@ namespace IPA.Loader ipaPlugins = new CompositeIPAPlugin(PluginManager.Plugins); #pragma warning restore 618 +#if NET4 gameObject.AddComponent(); +#endif bsPlugins.OnApplicationStart(); ipaPlugins.OnApplicationStart(); diff --git a/IPA.Loader/Updating/BeatMods/ApiEndpoint.cs b/IPA.Loader/Updating/BeatMods/ApiEndpoint.cs index 551583fe..18bcbd00 100644 --- a/IPA.Loader/Updating/BeatMods/ApiEndpoint.cs +++ b/IPA.Loader/Updating/BeatMods/ApiEndpoint.cs @@ -10,6 +10,7 @@ using Version = SemVer.Version; namespace IPA.Updating.BeatMods { +#if NET4 class ApiEndpoint { public const string BeatModBase = "https://beatmods.com"; @@ -178,4 +179,5 @@ namespace IPA.Updating.BeatMods } } +#endif } diff --git a/IPA.Loader/Updating/BeatMods/Updater.cs b/IPA.Loader/Updating/BeatMods/Updater.cs index 932be6ca..ae504c99 100644 --- a/IPA.Loader/Updating/BeatMods/Updater.cs +++ b/IPA.Loader/Updating/BeatMods/Updater.cs @@ -25,7 +25,14 @@ using Version = SemVer.Version; namespace IPA.Updating.BeatMods { [SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")] - internal class Updater : MonoBehaviour + internal partial class Updater : MonoBehaviour + { + internal const string SpecialDeletionsFile = "$$delete"; + } + +#if NET4 + [SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")] + internal partial class Updater : MonoBehaviour { public static Updater Instance; @@ -725,8 +732,6 @@ namespace IPA.Updating.BeatMods } internal static bool NeedsManualRestart = false; - - internal const string SpecialDeletionsFile = "$$delete"; } [Serializable] @@ -768,5 +773,5 @@ namespace IPA.Updating.BeatMods { } } - +#endif }