Fix game file indexing

This commit is contained in:
Timothy Baldridge 2020-11-30 05:49:54 -07:00
parent 693497711b
commit 164a8a4f4f
2 changed files with 7 additions and 1 deletions

View File

@ -36,12 +36,17 @@ namespace Wabbajack.CLI.Verbs
.PMap(queue, async f =>
{
var hash = await f.FileHashCachedAsync();
return new GameFileSourceDownloader.State
return new Archive(new GameFileSourceDownloader.State
{
Game = _game,
GameFile = f.RelativeTo(gameLocation),
Hash = hash,
GameVersion = version
})
{
Name = f.FileName.ToString(),
Hash = hash,
Size = f.Size
};
});

View File

@ -498,6 +498,7 @@ namespace Wabbajack.Common
Game = Game.KingdomComeDeliverance,
NexusName = "kingdomcomedeliverance",
MO2Name = "Kingdom Come: Deliverance",
MO2ArchiveName = "kingdomcomedeliverance",
NexusGameId = 2298,
SteamIDs = new List<int>{379430},
IsGenericMO2Plugin = true,