mirror of
https://github.com/modmii/SysCheck-ModMii-Edition.git
synced 2024-11-16 13:19:22 +01:00
Testing online update
This commit is contained in:
parent
d934fdc6b3
commit
69c02088c2
BIN
SysCheckHDE/boot.dol
Normal file
BIN
SysCheckHDE/boot.dol
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 MiB |
@ -1 +1 @@
|
|||||||
Version=19
|
Version=20
|
@ -17,7 +17,7 @@ s32 downloadSyscheckFile(char* fileName) {
|
|||||||
u8* outbuf;
|
u8* outbuf;
|
||||||
u32 lenght;
|
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);
|
ret = http_request(buf, 1 << 31);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
@ -66,10 +66,10 @@ s32 updateApp() {
|
|||||||
static char buf[128];
|
static char buf[128];
|
||||||
u32 http_status;
|
u32 http_status;
|
||||||
u8* outbuf;
|
u8* outbuf;
|
||||||
u32 lenght;
|
u32 length;
|
||||||
const char *checkStr = "Version=";
|
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);
|
ret = http_request(buf, 1 << 31);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
@ -78,7 +78,7 @@ s32 updateApp() {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = http_get_result(&http_status, &outbuf, &lenght);
|
ret = http_get_result(&http_status, &outbuf, &length);
|
||||||
|
|
||||||
if (((int)*outbuf & 0xF0000000) == 0xF0000000)
|
if (((int)*outbuf & 0xF0000000) == 0xF0000000)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user