public MainVM() { var env = GameEnvironment.Typical.Skyrim(SkyrimRelease.SkyrimSE, LinkCachePreferences.OnlyIdentifiers()) .DisposeWith(this); LinkCache = env.LinkCache; LoadOrder = env.LoadOrder; ScopedTypes = typeof(IArmorGetter).AsEnumerable(); LateSetPickerVM = new LateSetPickerVM(this); }
public MainVM() { var gameRelease = SkyrimRelease.SkyrimSE; var env = GameEnvironment.Typical.Skyrim(gameRelease, LinkCachePreferences.OnlyIdentifiers()) .DisposeWith(this); LinkCache = env.LinkCache; LoadOrder = env.LoadOrder; ScopedTypes = typeof(IArmorGetter).AsEnumerable(); LateSetPickerVM = new LateSetPickerVM(this); Reflection = new ReflectionSettingsVM( ReflectionSettingsParameters.CreateFrom( new TestSettings(), env.LoadOrder.ListedOrder, env.LinkCache)); LoadOrderVM = new FileSyncedLoadOrderVM(env.LoadOrderFilePath) { DataFolderPath = env.DataFolderPath.Path, CreationClubFilePath = env.CreationKitLoadOrderFilePath?.Path ?? string.Empty, GameRelease = gameRelease.ToGameRelease(), }; }