Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeWanderer committed Aug 7, 2024
1 parent d1cc332 commit cf856b2
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) ? (GamePath)targeted.TargetPath : default)
.Where(x => x != default)
.ToLookup(x => x.FileName);

Expand Down

0 comments on commit cf856b2

Please sign in to comment.