private void LaunchApplicationButton_Click(object sender, RoutedEventArgs e)
        {
            var Application = (appPicker.SelectedItem as ApplicationPicker_Control).App;

            var ActivatedMods = _currProfileDb.GetCollection <Mod>("mods").FindAll()
                                .Where(x => x.GameId == _currGame.Id && x.Installed && x.Active).Select(x => x).ToList();

            using (StreamWriter x = new StreamWriter($"{_currProfile.ProfileDirectory}\\modlist.txt"))
            {
                ActivatedMods.ForEach(m =>
                {
                    x.WriteLine($"1 {m.Name}");
                });
                x.Close();
            }

            Application.Launch(_currGame, ActivatedMods);
        }
Ejemplo n.º 2
0
 public void UpdateMod(Mod m)
 {
     _db.GetCollection <Mod>("mods").Update(m);
 }
Ejemplo n.º 3
0
 public void Update()
 {
     _db.GetCollection <Mod>("mods").Update(AssociatedMod);
 }