Пример #1
0
        private void LoadProfile_Click(object sender, RoutedEventArgs e)
        {
            if (_currentProfile == null)
            {
                NoProfileError();
                return;
            }

            ProfileLoadWindow dialog = new ProfileLoadWindow();

            if (dialog.ShowDialog() == true)
            {
                if (!dialog.installOverExisting)
                {
                    Mod.Uninstall("bbepis-BepInExPack", true);
                }

                ModManager.UpdateInstalledStatuses();

                ModManager.silent = true;
                _currentProfile.Install(ModManager.onlineModList, dialog.installProfileVersions);
                ModManager.silent = false;
            }
        }