From 164a8a4f4fb630a132e706fa1b10b3b212cfb771 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Mon, 30 Nov 2020 05:49:54 -0700 Subject: [PATCH] Fix game file indexing --- Wabbajack.CLI/Verbs/HashGameFiles.cs | 7 ++++++- Wabbajack.Common/GameMetaData.cs | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Wabbajack.CLI/Verbs/HashGameFiles.cs b/Wabbajack.CLI/Verbs/HashGameFiles.cs index e632a488..096bd1be 100644 --- a/Wabbajack.CLI/Verbs/HashGameFiles.cs +++ b/Wabbajack.CLI/Verbs/HashGameFiles.cs @@ -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 }; }); diff --git a/Wabbajack.Common/GameMetaData.cs b/Wabbajack.Common/GameMetaData.cs index c8bf3203..fc4bcded 100644 --- a/Wabbajack.Common/GameMetaData.cs +++ b/Wabbajack.Common/GameMetaData.cs @@ -498,6 +498,7 @@ namespace Wabbajack.Common Game = Game.KingdomComeDeliverance, NexusName = "kingdomcomedeliverance", MO2Name = "Kingdom Come: Deliverance", + MO2ArchiveName = "kingdomcomedeliverance", NexusGameId = 2298, SteamIDs = new List{379430}, IsGenericMO2Plugin = true,