Пример #1
0
        /// <summary>
        ///     Installs the latest version of Unturned.
        /// </summary>
        public static void UpdateUnturned()
        {
            SteamCmd.RunCommand($"+force_install_dir \"{ServerPath.Value}\" +app_update 1110390 +exit");

            var installedVersions = LocalVersions.Load();

            installedVersions.LastUnturnedUpdate = DateTime.Now;
            installedVersions.SaveJson();
        }
Пример #2
0
        // Custom Methods
        private void LoadVersions()
        {
            var installedVersions = LocalVersions.Load();

            CUVer.Text = installedVersions.LastUnturnedUpdate.ToString();
        }