Skip to content

Commit

Permalink
wait thats stupid only do that when game is encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Nov 1, 2024
1 parent 0b010f5 commit 98297ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Refresher.Core/Pipelines/Steps/GetConsoleIdpsStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ public override Task ExecuteAsync(CancellationToken cancellationToken = default)
{
ConsolePatchAccessor? accessor = this.Pipeline.Accessor as ConsolePatchAccessor;
Debug.Assert(accessor != null);

this.Encryption.ConsoleIdps = accessor.IdpsFile.Value;
// ^ is lazy<t>, will generate upon use

if (this.Game.ShouldUseNpdrmEncryption.GetValueOrDefault())
{
this.Encryption.ConsoleIdps = accessor.IdpsFile.Value;
// ^ is lazy<t>, will generate upon use
}

return Task.CompletedTask;
}
Expand Down

0 comments on commit 98297ae

Please sign in to comment.