update code for online update to use the file UPDATEFOLDER/revisions for version checking

This commit is contained in:
Christopher Roy Bratusek 2016-08-14 19:59:40 +02:00
parent 2506ce94f6
commit 22453ca6db
6 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
45-
44-
43-
42-

View File

@ -1,3 +1,4 @@
45-
44-
43-
42-

5
web/DOL.vwii/revisions Normal file
View File

@ -0,0 +1,5 @@
45-
44-
43-
42-
end

View File

@ -1,3 +1,4 @@
45-
44-
43-
42-