mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
Use RiiConnect24 geckocodes archive
This commit is contained in:
parent
ac7b60c9c2
commit
9362fd9789
@ -4,8 +4,7 @@
|
||||
#include "lockMutex.hpp"
|
||||
#include "network/https.h"
|
||||
|
||||
//#define GECKOURL "http://geckocodes.org/codes/%c/%s.txt"
|
||||
#define GECKOURL "https://www.geckocodes.org/txt.php?txt=%s"
|
||||
#define GECKOURL "https://codes.rc24.xyz/txt.php?txt=%s"
|
||||
#define CHEATSPERPAGE 4
|
||||
|
||||
u8 m_cheatSettingsPage = 0;
|
||||
|
@ -471,19 +471,15 @@ void downloadfile(const char *url, struct download *buffer)
|
||||
}
|
||||
// Send our request
|
||||
char request[2300];
|
||||
char isgecko[36] = "Cookie: challenge=BitMitigate.com\r\n";
|
||||
int ret, len;
|
||||
if (strncmp(host, "www.geckocodes.org", 18) != 0)
|
||||
memset(isgecko, 0, sizeof(isgecko)); // Not geckocodes, so don't set a cookie
|
||||
len = snprintf(request, sizeof(request),
|
||||
"GET %s HTTP/1.1\r\n"
|
||||
"Host: %s\r\n"
|
||||
"User-Agent: WiiFlow-Lite\r\n"
|
||||
"Connection: close\r\n"
|
||||
"%s"
|
||||
"Pragma: no-cache\r\n"
|
||||
"Cache-Control: no-cache\r\n\r\n",
|
||||
path, host, isgecko);
|
||||
path, host);
|
||||
if ((ret = https_write(&httpinfo, request, len, false)) != len)
|
||||
{
|
||||
#ifdef DEBUG_NETWORK
|
||||
|
Loading…
Reference in New Issue
Block a user