-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0c4224
commit 22bf842
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Games/NexusMods.Games.UnrealEngine/PacificDriveLoadoutSynchronizerOld.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using NexusMods.Abstractions.GameLocators; | ||
using NexusMods.Abstractions.Loadouts.Synchronizers; | ||
using NexusMods.Abstractions.Settings; | ||
|
||
namespace NexusMods.Games.UnrealEngine; | ||
|
||
public class PacificDriveLoadoutSynchronizerOld : ALoadoutSynchronizerOld | ||
{ | ||
private PacificDriveSettings _settings; | ||
|
||
protected internal PacificDriveLoadoutSynchronizerOld(IServiceProvider provider) : base(provider) | ||
{ | ||
var settingsManager = provider.GetRequiredService<ISettingsManager>(); | ||
|
||
_settings = settingsManager.Get<PacificDriveSettings>(); | ||
settingsManager.GetChanges<PacificDriveSettings>().Subscribe(value => _settings = value); | ||
} | ||
|
||
public override bool IsIgnoredBackupPath(GamePath path) | ||
{ | ||
return !_settings.DoFullGameBackup; | ||
} | ||
} |