/// <summary> /// Gets the euiv. /// </summary> /// <param name="baseUserDir">The base user dir.</param> /// <returns>IGameType.</returns> private IGameType GetEUIV(string baseUserDir) { var game = DIResolver.Get <IGameType>(); game.ChecksumFolders = Shared.Constants.GamesTypes.EuropaUniversalis4.ChecksumFolders; game.GameFolders = Shared.Constants.GamesTypes.EuropaUniversalis4.GameFolders; game.LogLocation = Path.Combine(Path.Combine(baseUserDir, Shared.Constants.GamesTypes.EuropaUniversalis4.DocsPath), Shared.Constants.GamesTypes.LogLocation).StandardizeDirectorySeparator(); game.Name = Shared.Constants.GamesTypes.EuropaUniversalis4.Id; game.SteamAppId = Shared.Constants.GamesTypes.EuropaUniversalis4.SteamAppId; game.UserDirectory = Path.Combine(baseUserDir, Shared.Constants.GamesTypes.EuropaUniversalis4.DocsPath).StandardizeDirectorySeparator(); game.WorkshopDirectory = SteamDirectory.GetWorkshopDirectory(Shared.Constants.GamesTypes.EuropaUniversalis4.SteamAppId).StandardizeDirectorySeparator(); game.BaseGameDirectory = SteamDirectory.GetGameDirectory(Shared.Constants.GamesTypes.EuropaUniversalis4.SteamAppId).StandardizeDirectorySeparator(); game.LauncherSettingsFileName = Shared.Constants.GamesTypes.LauncherSettingsFileName; game.RemoteSteamUserDirectory = SteamDirectory.GetUserDataFolders(game.SteamAppId).Select(p => p.StandardizeDirectorySeparator()).ToList(); game.AdvancedFeaturesSupported = false; MapGameSettings(game, GetExecutableSettings(game.BaseGameDirectory, game.LauncherSettingsFileName)); return(game); }
/// <summary> /// Gets the euiv. /// </summary> /// <param name="baseUserDir">The base user dir.</param> /// <returns>IGameType.</returns> private IGameType GetEUIV(string baseUserDir) { var game = DIResolver.Get <IGameType>(); game.DLCContainer = Shared.Constants.GamesTypes.DLCContainer; game.ChecksumFolders = Shared.Constants.GamesTypes.EuropaUniversalis4.ChecksumFolders; game.GameFolders = Shared.Constants.GamesTypes.EuropaUniversalis4.GameFolders; game.LogLocation = Path.Combine(Path.Combine(baseUserDir, Shared.Constants.GamesTypes.EuropaUniversalis4.DocsPath), Shared.Constants.GamesTypes.LogLocation).StandardizeDirectorySeparator(); game.Name = Shared.Constants.GamesTypes.EuropaUniversalis4.Id; game.Abrv = Shared.Constants.GamesTypes.EuropaUniversalis4.Abrv; game.SteamAppId = Shared.Constants.GamesTypes.EuropaUniversalis4.SteamAppId; game.UserDirectory = Path.Combine(baseUserDir, Shared.Constants.GamesTypes.EuropaUniversalis4.DocsPath).StandardizeDirectorySeparator(); game.WorkshopDirectory = SteamDirectory.GetWorkshopDirectory(Shared.Constants.GamesTypes.EuropaUniversalis4.SteamAppId).Select(p => p.StandardizeDirectorySeparator()).ToList(); game.BaseSteamGameDirectory = SteamDirectory.GetGameDirectory(Shared.Constants.GamesTypes.EuropaUniversalis4.SteamAppId).StandardizeDirectorySeparator(); game.LauncherSettingsFileName = Shared.Constants.GamesTypes.LauncherSettingsFileName; game.RemoteSteamUserDirectory = SteamDirectory.GetUserDataFolders(game.SteamAppId).Select(p => p.StandardizeDirectorySeparator()).ToList(); game.AdvancedFeatures = IronyModManager.Models.Common.GameAdvancedFeatures.None; game.ParadoxGameId = Shared.Constants.GamesTypes.EuropaUniversalis4.ParadoxGameId; game.GameIndexCacheVersion = 1; MapGameSettings(game, GetExecutableSettings(game.BaseSteamGameDirectory, game.LauncherSettingsFileName)); return(game); }