Browse Source

Removed the updater from Net3 builds

pull/32/head
Anairkoen Schno 5 years ago
parent
commit
387032269f
3 changed files with 13 additions and 4 deletions
  1. +2
    -0
      IPA.Loader/Loader/PluginComponent.cs
  2. +2
    -0
      IPA.Loader/Updating/BeatMods/ApiEndpoint.cs
  3. +9
    -4
      IPA.Loader/Updating/BeatMods/Updater.cs

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

@ -30,7 +30,9 @@ namespace IPA.Loader
ipaPlugins = new CompositeIPAPlugin(PluginManager.Plugins); ipaPlugins = new CompositeIPAPlugin(PluginManager.Plugins);
#pragma warning restore 618 #pragma warning restore 618
#if NET4
gameObject.AddComponent<Updating.BeatMods.Updater>(); gameObject.AddComponent<Updating.BeatMods.Updater>();
#endif
bsPlugins.OnApplicationStart(); bsPlugins.OnApplicationStart();
ipaPlugins.OnApplicationStart(); ipaPlugins.OnApplicationStart();


+ 2
- 0
IPA.Loader/Updating/BeatMods/ApiEndpoint.cs View File

@ -10,6 +10,7 @@ using Version = SemVer.Version;
namespace IPA.Updating.BeatMods namespace IPA.Updating.BeatMods
{ {
#if NET4
class ApiEndpoint class ApiEndpoint
{ {
public const string BeatModBase = "https://beatmods.com"; public const string BeatModBase = "https://beatmods.com";
@ -178,4 +179,5 @@ namespace IPA.Updating.BeatMods
} }
} }
#endif
} }

+ 9
- 4
IPA.Loader/Updating/BeatMods/Updater.cs View File

@ -25,7 +25,14 @@ using Version = SemVer.Version;
namespace IPA.Updating.BeatMods namespace IPA.Updating.BeatMods
{ {
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")] [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; public static Updater Instance;
@ -725,8 +732,6 @@ namespace IPA.Updating.BeatMods
} }
internal static bool NeedsManualRestart = false; internal static bool NeedsManualRestart = false;
internal const string SpecialDeletionsFile = "$$delete";
} }
[Serializable] [Serializable]
@ -768,5 +773,5 @@ namespace IPA.Updating.BeatMods
{ {
} }
} }
#endif
} }

Loading…
Cancel
Save