Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeWanderer committed Aug 6, 2024
1 parent b31be01 commit 9ba7afb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using NexusMods.Abstractions.Library.Models;
using System.Xml.Linq;
using NexusMods.Extensions.BCL;
using System.Linq;


namespace NexusMods.Games.UnrealEngine.Installers;
Expand Down Expand Up @@ -190,7 +191,7 @@ public override async ValueTask<InstallerResult> ExecuteAsync(
}

var foundGameFilesGroup = LoadoutGameFilesGroup
.FindByGameMetadata(loadout.Db, loadout.Installation.GameMetadataId)
.FindByGameMetadata(loadout.Db, loadout.Installation.GameInstallMetadataId)
.TryGetFirst(x => x.AsLoadoutItemGroup().AsLoadoutItem().LoadoutId == loadout.LoadoutId, out var gameFilesGroup);

if (!foundGameFilesGroup)
Expand All @@ -200,7 +201,7 @@ public override async ValueTask<InstallerResult> ExecuteAsync(
}

var gameFilesLookup = gameFilesGroup.AsLoadoutItemGroup().Children
.Select(gameFile => gameFile.TryGetAsLoadoutItemWithTargetPath(out var targeted) ? targeted.TargetPath : default)
.Select(gameFile => gameFile.TryGetAsLoadoutItemWithTargetPath(out var targeted) ? new GamePath(targeted.TargetPath.Item2, targeted.TargetPath.Item3) : default)
.Where(x => x != default)
.ToLookup(x => x.FileName);

Expand Down

0 comments on commit 9ba7afb

Please sign in to comment.