Add libcurl for non-TP downloads

This commit is contained in:
2024-05-20 21:30:29 -04:00
parent 610b21463d
commit e498b3f24a
3 changed files with 193 additions and 1 deletions

View File

@@ -51,6 +51,17 @@
#define CACHE_PATH_FORMAT "/3ds/" APP_TITLE "/cache/%" JSON_INTEGER_FORMAT
typedef struct {
char *result_buf;
size_t result_written;
size_t result_sz;
} curl_data;
typedef struct {
char *filename;
char *mime_type;
} curl_header;
bool themeplaza_browser(EntryMode mode);
Result http_get(const char * url, char ** filename, char ** buf, u32 * size, InstallType install_type, const char * acceptable_mime_types);