Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Core/ModManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ private void InstallAllModFiles(CancellationToken cancellationToken)
var modConfigs = new List<IMod.ConfigEntries>();
var installedFilesByMod = new Dictionary<string, InternalModInstallationState>();
var installedFiles = new HashSet<string>();
bool SkipAlreadyInstalled(string file) => installedFiles.Add(file.ToLowerInvariant());
try
{
if (modPackages.Any())
Expand All @@ -296,7 +297,7 @@ private void InstallAllModFiles(CancellationToken cancellationToken)
var mod = ExtractMod(packageName, modReference.FullPath);
try
{
mod.Install(game.InstallationDirectory, installedFiles.Add);
mod.Install(game.InstallationDirectory, SkipAlreadyInstalled);
modConfigs.Add(mod.Config);
}
finally
Expand All @@ -315,7 +316,7 @@ private void InstallAllModFiles(CancellationToken cancellationToken)
var postProcessingDone = false;
try
{
bootfilesMod.Install(game.InstallationDirectory, installedFiles.Add);
bootfilesMod.Install(game.InstallationDirectory, SkipAlreadyInstalled);
Logs?.Invoke("Post-processing:");
Logs?.Invoke("- Appending crd file entries");
PostProcessor.AppendCrdFileEntries(game.InstallationDirectory, modConfigs.SelectMany(_ => _.CrdFileEntries));
Expand Down