From 22453ca6db615cfd035e2b8edbe7017950bd9e2f Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 14 Aug 2016 19:59:40 +0200 Subject: [PATCH] update code for online update to use the file UPDATEFOLDER/revisions for version checking --- main/source/Network/network.cpp | 6 +++--- main/source/Network/update.cpp | 6 +++--- web/{revisions.vwii => DOL.st.vwii/revisions} | 1 + web/{revisions.st => DOL.st/revisions} | 1 + web/DOL.vwii/revisions | 5 +++++ web/{ => DOL}/revisions | 1 + 6 files changed, 14 insertions(+), 6 deletions(-) rename web/{revisions.vwii => DOL.st.vwii/revisions} (80%) rename web/{revisions.st => DOL.st/revisions} (88%) create mode 100644 web/DOL.vwii/revisions rename web/{ => DOL}/revisions (97%) diff --git a/main/source/Network/network.cpp b/main/source/Network/network.cpp index b1b85dd..844d498 100644 --- a/main/source/Network/network.cpp +++ b/main/source/Network/network.cpp @@ -55,11 +55,11 @@ void CheckVersion(void) if(Settings.checkrev == -1) { #ifdef STBOOTVWII - struct block file = downloadfile("http://www.nanolx.org/hbf/DOL.st.vwii/revisions.st.vwii"); + struct block file = downloadfile("http://www.nanolx.org/hbf/DOL.st.vwii/revisions"); #elif VWII - struct block file = downloadfile("http://www.nanolx.org/hbf/DOL.vwii/revisions.vwii"); + struct block file = downloadfile("http://www.nanolx.org/hbf/DOL.vwii/revisions"); #elif STBOOT - struct block file = downloadfile("http://www.nanolx.org/hbf/DOL.st/revisions.st"); + struct block file = downloadfile("http://www.nanolx.org/hbf/DOL.st/revisions"); #else struct block file = downloadfile("http://www.nanolx.org/hbf/DOL/revisions"); #endif diff --git a/main/source/Network/update.cpp b/main/source/Network/update.cpp index 55ac466..a5c7d64 100644 --- a/main/source/Network/update.cpp +++ b/main/source/Network/update.cpp @@ -14,11 +14,11 @@ string CheckNewVersions() string revs = "error"; char buffer[100]; #ifdef STBOOTVWII - sprintf(buffer, "http://www.nanolx.org/hbf/DOL.st.vwii/revisions.st.vwii"); + sprintf(buffer, "http://www.nanolx.org/hbf/DOL.st.vwii/revisions"); #elif VWII - sprintf(buffer, "http://www.nanolx.org/hbf/DOL.vwii/revisions.vwii"); + sprintf(buffer, "http://www.nanolx.org/hbf/DOL.vwii/revisions"); #elif STBOOT - sprintf(buffer, "http://www.nanolx.org/hbf/DOL.st/revisions.st"); + sprintf(buffer, "http://www.nanolx.org/hbf/DOL.st/revisions"); #else sprintf(buffer, "http://www.nanolx.org/hbf/DOL/revisions"); #endif diff --git a/web/revisions.vwii b/web/DOL.st.vwii/revisions similarity index 80% rename from web/revisions.vwii rename to web/DOL.st.vwii/revisions index a52419e..748f86b 100644 --- a/web/revisions.vwii +++ b/web/DOL.st.vwii/revisions @@ -1,3 +1,4 @@ +45- 44- 43- 42- diff --git a/web/revisions.st b/web/DOL.st/revisions similarity index 88% rename from web/revisions.st rename to web/DOL.st/revisions index 2153c00..ddeb6a7 100644 --- a/web/revisions.st +++ b/web/DOL.st/revisions @@ -1,3 +1,4 @@ +45- 44- 43- 42- diff --git a/web/DOL.vwii/revisions b/web/DOL.vwii/revisions new file mode 100644 index 0000000..748f86b --- /dev/null +++ b/web/DOL.vwii/revisions @@ -0,0 +1,5 @@ +45- +44- +43- +42- +end diff --git a/web/revisions b/web/DOL/revisions similarity index 97% rename from web/revisions rename to web/DOL/revisions index e491112..d16e61c 100644 --- a/web/revisions +++ b/web/DOL/revisions @@ -1,3 +1,4 @@ +45- 44- 43- 42-