From 0292f5f14081a6be5c3db138b5b8867928dbb34b Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 17 Sep 2014 18:33:26 +0100 Subject: [PATCH] Beta versions check for updates with their version & commit hash * This will allow official and beta releases to have parallel update tracks as planned --- renderdocui/Windows/MainWindow.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/renderdocui/Windows/MainWindow.cs b/renderdocui/Windows/MainWindow.cs index 015162681..bac99bd27 100644 --- a/renderdocui/Windows/MainWindow.cs +++ b/renderdocui/Windows/MainWindow.cs @@ -886,7 +886,7 @@ namespace renderdocui.Windows return; } - if(!OfficialVersion) + if(!OfficialVersion && !BetaVersion) return; if (m_Core.Config.CheckUpdate_UpdateAvailable) @@ -903,10 +903,15 @@ namespace renderdocui.Windows m_Core.Config.CheckUpdate_LastUpdate = today; + string versionCheck = VersionString; + + if (BetaVersion) + versionCheck += String.Format("-{0}-beta", GitCommitHash.Substring(0, 8)); + var updateThread = Helpers.NewThread(new ThreadStart(() => { // spawn thread to check update - WebRequest g = HttpWebRequest.Create(String.Format("http://renderdoc.org/checkupdate/{0}", VersionString)); + WebRequest g = HttpWebRequest.Create(String.Format("http://renderdoc.org/checkupdate/{0}", versionCheck)); try {