From 002ea763fbbc21efc61bbcb6df1a2cda93f34774 Mon Sep 17 00:00:00 2001 From: cadaei Date: Sat, 14 Jan 2017 19:22:25 +0100 Subject: [PATCH] updates of values.json can be denied (useful for console players that get game-updates later). --- ARKBreedingStats/Form1.cs | 12 +++++++----- ARKBreedingStats/ver.txt | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ARKBreedingStats/Form1.cs b/ARKBreedingStats/Form1.cs index 8d006fb6..ecd07965 100644 --- a/ARKBreedingStats/Form1.cs +++ b/ARKBreedingStats/Form1.cs @@ -1429,11 +1429,13 @@ private void checkForUpdates(bool silentCheck = false) if (Int32.TryParse(remoteVers[0], out remoteFileVer) && Values.V.version < remoteFileVer) { // backup the current version (to safe user added custom commands) - if (MessageBox.Show("There is a new version of the values-file \"" + filename + "\", do you want to make a backup of the current file?\nThis is recommended if you have changed the file manually and want to keep these changes.", "Backup old file?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - System.IO.File.Copy(filename, filename + "_backup_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".json"); - // Download the Web resource and save it into the current filesystem folder. - myWebClient.DownloadFile(remoteUri + filename, filename); - updated = true; + if (MessageBox.Show("There is a new version of the values-file \"" + filename + "\", do you want to update it?\n\nIf you play on a console (Xbox or PS4) make a backup of the current file before you click on Yes, as the updated values may not work with the console-version for some time.\nUsually it takes some days to weeks until the changes are valid on the consoles as well.", "Update Values-File?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + // System.IO.File.Copy(filename, filename + "_backup_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".json"); + // Download the Web resource and save it into the current filesystem folder. + myWebClient.DownloadFile(remoteUri + filename, filename); + updated = true; + } } } catch (System.Net.WebException ex) diff --git a/ARKBreedingStats/ver.txt b/ARKBreedingStats/ver.txt index 6565605b..6867e731 100644 --- a/ARKBreedingStats/ver.txt +++ b/ARKBreedingStats/ver.txt @@ -1 +1 @@ -2530000,0.20.8.3 \ No newline at end of file +2530000,0.20.9.0 \ No newline at end of file