This commit is contained in:
Timothy Baldridge 2022-08-20 21:08:34 -06:00
parent 35cabfa540
commit 2a8b4f5bbc
2 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,8 @@
### Changelog ### Changelog
#### Version - 3.0.0.4 - 8/20/2022
* Fix for: when some optional game files weren't present (like CreationKit.exe), the app would refuse to recognize any files from that game
#### Version - 3.0.0.3 - 8/20/2022 #### Version - 3.0.0.3 - 8/20/2022
* Properly detect the program version * Properly detect the program version
* Fix how the download folder is set in MO2 during installation * Fix how the download folder is set in MO2 during installation

View File

@ -255,15 +255,17 @@ public abstract class ACompiler
_logger.LogInformation($"Including {files.Length} stock game files from {ag} as download sources"); _logger.LogInformation($"Including {files.Length} stock game files from {ag} as download sources");
GameHashes[ag] = files.Select(f => f.Hash).ToHashSet(); GameHashes[ag] = files.Select(f => f.Hash).ToHashSet();
IndexedArchives.AddRange(files.Select(f => IndexedArchives.AddRange(files.TryKeep(f =>
{ {
var state = (GameFileSource) f.State; var state = (GameFileSource) f.State;
return new IndexedArchive( if (_vfs.Index.ByRootPath.TryGetValue(path.Combine(state.GameFile), out var vf)) {
_vfs.Index.ByRootPath[path.Combine(state.GameFile)]) return (true, new IndexedArchive(vf)
{ {
Name = state.GameFile.ToString().Replace("/", "_").Replace("\\", "_"), Name = state.GameFile.ToString().Replace("/", "_").Replace("\\", "_"),
State = state State = state
}; });
}
return default;
})); }));
} }
catch (Exception e) catch (Exception e)