mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-21 18:59:15 +01:00
Download languages and updates from GitHub
This commit is contained in:
parent
2a87b71a26
commit
c2610b0df5
32
Languages/index.html
Normal file
32
Languages/index.html
Normal file
@ -0,0 +1,32 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Languages</title>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="czech.lang">czech.lang</a></li>
|
||||
<li><a href="danish.lang">danish.lang</a></li>
|
||||
<li><a href="dutch.lang">dutch.lang</a></li>
|
||||
<li><a href="english.lang">english.lang</a></li>
|
||||
<li><a href="finnish.lang">finnish.lang</a></li>
|
||||
<li><a href="french.lang">french.lang</a></li>
|
||||
<li><a href="german.lang">german.lang</a></li>
|
||||
<li><a href="greek.lang">greek.lang</a></li>
|
||||
<li><a href="hungarian.lang">hungarian.lang</a></li>
|
||||
<li><a href="italian.lang">italian.lang</a></li>
|
||||
<li><a href="japanese.lang">japanese.lang</a></li>
|
||||
<li><a href="korean.lang">korean.lang</a></li>
|
||||
<li><a href="norwegian.lang">norwegian.lang</a></li>
|
||||
<li><a href="polish.lang">polish.lang</a></li>
|
||||
<li><a href="portuguese_br.lang">portuguese_br.lang</a></li>
|
||||
<li><a href="portuguese_pt.lang">portuguese_pt.lang</a></li>
|
||||
<li><a href="russian.lang">russian.lang</a></li>
|
||||
<li><a href="schinese.lang">schinese.lang</a></li>
|
||||
<li><a href="spanish.lang">spanish.lang</a></li>
|
||||
<li><a href="swedish.lang">swedish.lang</a></li>
|
||||
<li><a href="tchinese.lang">tchinese.lang</a></li>
|
||||
<li><a href="thai.lang">thai.lang</a></li>
|
||||
<li><a href="turkish.lang">turkish.lang</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
@ -22,7 +22,8 @@
|
||||
#include "gecko.h"
|
||||
#include "svnrev.h"
|
||||
|
||||
static const char * LanguageFilesURL = "https://svn.code.sf.net/p/usbloadergx/code/trunk/Languages/";
|
||||
static const char * LanguageFilesURL = "https://raw.githubusercontent.com/wiidev/usbloadergx/enhanced/Languages/";
|
||||
static const char * LanguagesURL = "https://raw.githubusercontent.com/wiidev/usbloadergx/enhanced/Languages/index.html";
|
||||
|
||||
int DownloadAllLanguageFiles(int revision)
|
||||
{
|
||||
@ -39,7 +40,7 @@ int DownloadAllLanguageFiles(int revision)
|
||||
}
|
||||
char fullURL[300];
|
||||
|
||||
URL_List LinkList(LanguageFilesURL);
|
||||
URL_List LinkList(LanguagesURL);
|
||||
int listsize = LinkList.GetURLCount();
|
||||
int files_downloaded = 0;
|
||||
char target[6];
|
||||
|
@ -149,7 +149,7 @@ static void UpdateIconPng()
|
||||
{
|
||||
char iconpath[200];
|
||||
struct download file = {};
|
||||
downloadfile("https://svn.code.sf.net/p/usbloadergx/code/branches/updates/icon.png", &file);
|
||||
downloadfile("https://raw.githubusercontent.com/wiidev/usbloadergx/updates/icon.png", &file);
|
||||
if (file.size > 0)
|
||||
{
|
||||
snprintf(iconpath, sizeof(iconpath), "%sicon.png", Settings.update_path);
|
||||
@ -167,8 +167,7 @@ static void UpdateMetaXml()
|
||||
{
|
||||
char xmlpath[200];
|
||||
struct download file = {};
|
||||
downloadfile("https://svn.code.sf.net/p/usbloadergx/code/branches/updates/meta.xml", &file);
|
||||
// if not working, use this url form: http://sourceforge.net/p/usbloadergx/code/1254/tree//branches/updates/meta.xml?format=raw
|
||||
downloadfile("https://raw.githubusercontent.com/wiidev/usbloadergx/updates/meta.xml", &file);
|
||||
if (file.size > 0)
|
||||
{
|
||||
snprintf(xmlpath, sizeof(xmlpath), "%smeta.xml", Settings.update_path);
|
||||
@ -192,9 +191,9 @@ int CheckUpdate()
|
||||
|
||||
struct download file = {};
|
||||
#ifdef FULLCHANNEL
|
||||
downloadfile("https://svn.code.sf.net/p/usbloadergx/code/branches/updates/update_wad.txt", &file);
|
||||
downloadfile("https://raw.githubusercontent.com/wiidev/usbloadergx/updates/update_wad.txt", &file);
|
||||
#else
|
||||
downloadfile("https://svn.code.sf.net/p/usbloadergx/code/branches/updates/update_dol.txt", &file);
|
||||
downloadfile("https://raw.githubusercontent.com/wiidev/usbloadergx/updates/update_dol.txt", &file);
|
||||
#endif
|
||||
|
||||
if (file.size > 0)
|
||||
@ -217,9 +216,9 @@ static int ApplicationDownload(void)
|
||||
|
||||
struct download file = {};
|
||||
#ifdef FULLCHANNEL
|
||||
downloadfile("https://svn.code.sf.net/p/usbloadergx/code/branches/updates/update_wad.txt", &file);
|
||||
downloadfile("https://raw.githubusercontent.com/wiidev/usbloadergx/updates/update_wad.txt", &file);
|
||||
#else
|
||||
downloadfile("https://svn.code.sf.net/p/usbloadergx/code/branches/updates/update_dol.txt", &file);
|
||||
downloadfile("https://raw.githubusercontent.com/wiidev/usbloadergx/updates/update_dol.txt", &file);
|
||||
#endif
|
||||
|
||||
if (file.size > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user