From ce87d368bd3e9b6c05ed9f6fdbb97580f105bbcf Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 3 Jan 2024 05:18:11 -0600 Subject: refactor and download asset index --- src/l2su.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/l2su.h') diff --git a/src/l2su.h b/src/l2su.h index 1adfc4c..8c77e14 100644 --- a/src/l2su.h +++ b/src/l2su.h @@ -60,6 +60,11 @@ void l2_launcher_download_cleanup(struct l2_dlbuf *buf); extern const curl_write_callback l2_dlcb; CURLcode l2_launcher_download(CURL *cd, const char *url, void **odata, size_t *osize); + +int l2_launcher_should_download(const char *path, const l2_sha1_digest_t *expectdigest, size_t expectsize); +int l2_launcher_check_integrity(FILE *fp, const l2_sha1_digest_t *digest, size_t sz); +int l2_launcher_download_checksummed(const char *url, const char *pathstr, l2_sha1_digest_t *expect_digest, size_t expect_size); + int l2_json_merge_objects(json_t *j1, json_t *j2); /* string substitute utility */ -- cgit v1.2.3-70-g09d2