/// <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(); }
// Custom Methods private void LoadVersions() { var installedVersions = LocalVersions.Load(); CUVer.Text = installedVersions.LastUnturnedUpdate.ToString(); }