Nexus.Client.Games.TESO.GeneralSettingsGroup.Save C# (CSharp) Метод

Save() публичный Метод

Persists the grouped setting values to the persistent store.
public Save ( ) : bool
Результат bool
		public override bool Save()
		{
			if (!RequiredDirectoriesVM.ValidateSettings())
				return false;
			RequiredDirectoriesVM.SaveSettings(true);

			if (!String.Equals(EnvironmentInfo.Settings.InstallationPaths[GameMode.ModeId], InstallationPath.Trim(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar)))
				EnvironmentInfo.Settings.DelayedSettings[GameMode.ModeId].Add(String.Format("InstallationPaths~{0}", GameMode.ModeId), InstallationPath.Trim(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar));
			EnvironmentInfo.Settings.CustomLaunchCommands[GameMode.ModeId] = FileUtil.StripInvalidPathChars(CustomLaunchCommand);
			EnvironmentInfo.Settings.CustomLaunchCommandArguments[GameMode.ModeId] = CustomLaunchCommandArguments;
			EnvironmentInfo.Settings.Save();
			return true;
		}
	}