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

Submodule MareAPI updated: 9fea4c30da...2015496ec0

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);
}
}