public VortexCompiler(Game game, string gamePath, string vortexFolder, string downloadsFolder, string stagingFolder, string outputFile) { Game = game; GamePath = gamePath; GameName = game.MetaData().NexusName; VortexFolder = vortexFolder; DownloadsFolder = downloadsFolder; StagingFolder = stagingFolder; ModListOutputFile = outputFile; if (string.IsNullOrEmpty(ModListName)) { ModListName = $"Vortex ModList for {Game.ToString()}"; ModListOutputFile = $"{ModListName}{Consts.ModListExtension}"; } GameName = Game.MetaData().NexusName; ActiveArchives = new List <string>(); // there can be max one game after filtering StoreHandler.Instance.StoreGames.Where(g => g.Game == game && g.Type == StoreType.STEAM).Do(g => { _isSteamGame = true; _steamGame = (SteamGame)g; _hasSteamWorkshopItems = _steamGame.WorkshopItems.Count > 0; }); }
public VortexCompiler(Game game, AbsolutePath gamePath, AbsolutePath vortexFolder, AbsolutePath downloadsFolder, AbsolutePath stagingFolder, AbsolutePath outputFile) { Game = game; GamePath = gamePath; GameName = game.MetaData().NexusName; VortexFolder = vortexFolder; DownloadsFolder = downloadsFolder; StagingFolder = stagingFolder; ModListOutputFile = outputFile; if (string.IsNullOrEmpty(ModListName)) { ModListName = $"Vortex ModList for {Game.ToString()}"; ModListOutputFile = ((RelativePath)ModListName).RelativeToEntryPoint().WithExtension(Consts.ModListExtension); } GameName = Game.MetaData().NexusName; ActiveArchives = new List <string>(); // there can be max one game after filtering /* * StoreHandler.Instance.StoreGames.Where(g => g.Game == game && g.Type == StoreType.STEAM).Do(g => * { * _isSteamGame = true; * _steamGame = (SteamGame)g; * _hasSteamWorkshopItems = _steamGame.WorkshopItems.Count > 0; * }); */ }