Browse Source

Added config option to disable auto-updates

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
21d45d45b3
3 changed files with 7 additions and 7 deletions
  1. +2
    -0
      IPA.Loader/Config/SelfConfig.cs
  2. +4
    -3
      IPA.Loader/Loader/PluginComponent.cs
  3. +1
    -4
      IPA.Loader/Updating/BeatMods/Updater.cs

+ 2
- 0
IPA.Loader/Config/SelfConfig.cs View File

@ -39,6 +39,8 @@ namespace IPA.Config
public bool ApplyAntiYeet = false;
public bool AutoUpdate = true;
public class DebugObject
{
public bool ShowCallSource = false;


+ 4
- 3
IPA.Loader/Loader/PluginComponent.cs View File

@ -1,4 +1,5 @@
using IPA.Loader.Composite;
using IPA.Config;
using IPA.Loader.Composite;
using System.Diagnostics.CodeAnalysis;
using UnityEngine;
using UnityEngine.SceneManagement;
@ -27,8 +28,8 @@ namespace IPA.Loader
ipaPlugins = new CompositeIPAPlugin(PluginManager.Plugins);
#pragma warning restore 618
/* kill this for now, until theres a new system */
gameObject.AddComponent<Updating.BeatMods.Updater>();
if (SelfConfig.SelfConfigRef.Value.AutoUpdate)
gameObject.AddComponent<Updating.BeatMods.Updater>();
bsPlugins.OnApplicationStart();
ipaPlugins.OnApplicationStart();


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

@ -46,10 +46,7 @@ namespace IPA.Updating.BeatMods
}
}
private void CheckForUpdates()
{
StartCoroutine(CheckForUpdatesCoroutine());
}
public void CheckForUpdates() => StartCoroutine(CheckForUpdatesCoroutine());
private class DependencyObject
{


Loading…
Cancel
Save