Browse Source

Fixed no-update to actually prevent updates

pull/11/head
Anairkoen Schno 5 years ago
parent
commit
07c8e2e282
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      IPA.Loader/Updating/BeatMods/Updater.cs

+ 5
- 2
IPA.Loader/Updating/BeatMods/Updater.cs View File

@ -11,6 +11,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Ionic.Zip; using Ionic.Zip;
using IPA.Loader; using IPA.Loader;
using IPA.Loader.Features;
using IPA.Utilities; using IPA.Utilities;
using Newtonsoft.Json; using Newtonsoft.Json;
using SemVer; using SemVer;
@ -169,7 +170,8 @@ namespace IPA.Updating.BeatMods
{ {
var depList = new Ref<List<DependencyObject>>(new List<DependencyObject>()); var depList = new Ref<List<DependencyObject>>(new List<DependencyObject>());
foreach (var plugin in BSMetas)
foreach (var plugin in BSMetas
.Where(m => m.Metadata.Features.FirstOrDefault(f => f is NoUpdateFeature) != null))
{ // initialize with data to resolve (1.1) { // initialize with data to resolve (1.1)
if (plugin.Metadata.Id != null) if (plugin.Metadata.Id != null)
{ // updatable { // updatable
@ -183,7 +185,8 @@ namespace IPA.Updating.BeatMods
} }
} }
foreach (var meta in PluginLoader.ignoredPlugins.Where(m => m.Id != null))
foreach (var meta in PluginLoader.ignoredPlugins.Where(m => m.Id != null)
.Where(m => m.Features.FirstOrDefault(f => f is NoUpdateFeature) != null))
{ {
depList.Value.Add(new DependencyObject depList.Value.Add(new DependencyObject
{ {


Loading…
Cancel
Save