Testing online update

This commit is contained in:
Joostinonline 2013-10-12 18:56:41 +00:00
parent d934fdc6b3
commit 69c02088c2
3 changed files with 5 additions and 5 deletions

BIN
SysCheckHDE/boot.dol Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -1 +1 @@
Version=19
Version=20

View File

@ -17,7 +17,7 @@ s32 downloadSyscheckFile(char* fileName) {
u8* outbuf;
u32 lenght;
snprintf(buf, 128, "http://syscheck.googlecode.com/svn/trunk/hbc/%s", fileName);
snprintf(buf, 127, "http://syscheck-hd.googlecode.com/svn/trunk/SysCheckHDE/%s", fileName);
ret = http_request(buf, 1 << 31);
if (!ret)
@ -66,10 +66,10 @@ s32 updateApp() {
static char buf[128];
u32 http_status;
u8* outbuf;
u32 lenght;
u32 length;
const char *checkStr = "Version=";
snprintf(buf, 128, "http://syscheck.googlecode.com/svn/trunk/Version.txt");
snprintf(buf, 128, "http://syscheck-hd.googlecode.com/svn/trunk/Version.txt");
ret = http_request(buf, 1 << 31);
if (!ret)
@ -78,7 +78,7 @@ s32 updateApp() {
return -1;
}
ret = http_get_result(&http_status, &outbuf, &lenght);
ret = http_get_result(&http_status, &outbuf, &length);
if (((int)*outbuf & 0xF0000000) == 0xF0000000)
{