Пример #1
0
        public override void Initialize()
        {
            base.Initialize();

            this.WhenAnyValue(x => x.InstalledState)
            .Skip(1)
            .Subscribe(x => UpdateContentPaths());

            Settings.WhenAnyValue(x => x.ServerMode, x => x.StartupParameters.Server, (x, y) => x || y)
            .Skip(1)
            .Subscribe(x => RefreshState());

            Settings.WhenAnyValue(x => x.RepositoryDirectory, x => x.ModDirectory, (x, y) => true)
            .Skip(1)
            .Subscribe(x => UpdateContentPaths());

            Settings.WhenAnyValue(x => x.IncludeServerMods)
            .Skip(1)
            .Subscribe(x => CalculatedSettings.Update());

            Settings.StartupParameters.Identities = GetProfiles().ToArray();
        }
Пример #2
0
 public override void RefreshState()
 {
     UpdateInstalledState();
     UpdateModPaths();
     CalculatedSettings.Update();
 }
Пример #3
0
 public virtual void RefreshState()
 {
     UpdateInstalledState();
     CalculatedSettings.Update();
 }