Skip to content

Commit de781ef

Browse files
Fix incorrect universal config check
1 parent 64947d6 commit de781ef

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

source/Reloaded.Mod.Launcher.Lib/Models/ViewModel/DownloadPackagesViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,11 @@ public void Execute(object? parameter)
316316
if (!modsBefore.ContainsKey(item.Key))
317317
{
318318
newConfigs.Add(item.Value.Config);
319-
if (item.Value.Config.IsUniversalMod || item.Value.Config.SupportedAppId.Length > 0)
319+
320+
if (item.Value.Config.IsUniversalMod)
321+
continue;
322+
323+
if (item.Value.Config.SupportedAppId.Length > 0)
320324
{
321325
var match = IoC.Get<ApplicationConfigService>().Items.FirstOrDefault(app => item.Value.Config.SupportedAppId.Contains(app.Config.AppId));
322326
if (match == null)

source/Reloaded.Mod.Launcher.Lib/Startup.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ private static void DownloadModAndExit(string downloadUrl)
138138
{
139139
if (!oldItemsById.ContainsKey(item.Key))
140140
{
141-
if (item.Value.Config.IsUniversalMod || item.Value.Config.SupportedAppId.Length > 0)
141+
if (item.Value.Config.IsUniversalMod)
142+
continue;
143+
144+
if (item.Value.Config.SupportedAppId.Length > 0)
142145
{
143146
var match = IoC.Get<ApplicationConfigService>().Items.FirstOrDefault(app => item.Value.Config.SupportedAppId.Contains(app.Config.AppId));
144147
if (match == null)

source/Reloaded.Mod.Launcher/MainWindow.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ private async void InstallMod_Drop(object sender, DragEventArgs e)
135135
if (!modsBefore.ContainsKey(item.Key))
136136
{
137137
newConfigs.Add(item.Value.Config);
138-
if(item.Value.Config.IsUniversalMod || item.Value.Config.SupportedAppId.Length > 0)
138+
139+
if (item.Value.Config.IsUniversalMod)
140+
continue;
141+
142+
if(item.Value.Config.SupportedAppId.Length > 0)
139143
{
140144
var match = Lib.IoC.Get<ApplicationConfigService>().Items.FirstOrDefault(app => item.Value.Config.SupportedAppId.Contains(app.Config.AppId));
141145
if(match == null)

0 commit comments

Comments
 (0)