diff --git a/MareSynchronos/PlayerData/Data/FileReplacement.cs b/MareSynchronos/PlayerData/Data/FileReplacement.cs index a8d5a6a..151d447 100644 --- a/MareSynchronos/PlayerData/Data/FileReplacement.cs +++ b/MareSynchronos/PlayerData/Data/FileReplacement.cs @@ -22,7 +22,7 @@ public partial class FileReplacement public bool HasFileReplacement => GamePaths.Count >= 1 && GamePaths.Any(p => !string.Equals(p, ResolvedPath, StringComparison.Ordinal)); public string Hash => _hashLazy.Value; - public bool IsFileSwap => !LocalPathRegex().IsMatch(ResolvedPath) && !string.Equals(GamePaths.First(), ResolvedPath, StringComparison.Ordinal); + public bool IsFileSwap => !LocalPathRegex().IsMatch(ResolvedPath) && GamePaths.All(p => !LocalPathRegex().IsMatch(p)); public string ResolvedPath { get; init; } public FileReplacementData ToFileReplacementDto() @@ -37,7 +37,7 @@ public partial class FileReplacement public override string ToString() { - return $"Modded: {HasFileReplacement} - {string.Join(",", GamePaths)} => {ResolvedPath}"; + return $"HasReplacement:{HasFileReplacement},IsFileSwap:{IsFileSwap} - {string.Join(",", GamePaths)} => {ResolvedPath}"; } [GeneratedRegex(@"^[a-zA-Z]:(/|\\)", RegexOptions.ECMAScript)]