actually add invalid game paths and file swap paths to show in the error message

This commit is contained in:
rootdarkarchon 2023-01-19 18:30:29 +01:00
parent d7e664477f
commit 99cf46875b
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit 9fea4c30da56d842a10a209a9945fd7f3cb98f4b
Subproject commit 2015496ec0bbda566a0ac7e88ce56d7714fd8c49

View file

@ -133,6 +133,9 @@ public partial class MareHub
{
_logger.LogCallWarning(MareHubLogger.Args("Invalid Data", "GamePaths", validGamePaths, string.Join(",", invalidPaths), "Hash", validHash, replacement.Hash, "FileSwap", validFileSwapPath, replacement.FileSwapPath));
hadInvalidData = true;
if (!validFileSwapPath) invalidFileSwapPaths.Add(replacement.FileSwapPath);
if (!validGamePaths) invalidGamePaths.AddRange(replacement.GamePaths);
if (!validHash) invalidFileSwapPaths.Add(replacement.Hash);
}
}