Skip to content

Commit

Permalink
allow null main + dynamic keys
Browse files Browse the repository at this point in the history
  • Loading branch information
4sval committed Aug 7, 2022
1 parent 527d48f commit 4c19513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FModel/Settings/UserSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ public IDictionary<FGame, FEndpoint[]> CustomEndpoints
new("Strings", "g3/Content/Localization/")
}
},
{FGame.PandaGame, new List<CustomDirectory>()},
{FGame.StateOfDecay2, new List<CustomDirectory>()},
{FGame.Prospect, new List<CustomDirectory>()},
{FGame.Indiana, new List<CustomDirectory>()},
Expand All @@ -481,7 +480,8 @@ public IDictionary<FGame, FEndpoint[]> CustomEndpoints
{FGame.TslGame, new List<CustomDirectory>()},
{FGame.PortalWars, new List<CustomDirectory>()},
{FGame.Gameface, new List<CustomDirectory>()},
{FGame.Athena, new List<CustomDirectory>()}
{FGame.Athena, new List<CustomDirectory>()},
{FGame.PandaGame, new List<CustomDirectory>()},
};
public IDictionary<FGame, IList<CustomDirectory>> CustomDirectories
{
Expand Down
2 changes: 1 addition & 1 deletion FModel/ViewModels/ApiEndpoints/Models/AesResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public AesResponse()
}

[I] public bool HasDynamicKeys => DynamicKeys is { Count: > 0 };
[I] public bool IsValid => MainKey.Length == 66;
[I] public bool IsValid => MainKey.Length == 66 || HasDynamicKeys;
}

[DebuggerDisplay("{" + nameof(Key) + "}")]
Expand Down

0 comments on commit 4c19513

Please sign in to comment.