Skip to content

Commit

Permalink
Fix h3 files not being downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpl0itU committed Nov 24, 2022
1 parent 898ee95 commit 0acd687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void downloadTitle(const char *titleID, const char *name, bool decrypt, bool *ca
sprintf(progress->currentFile, "%08X.app", id);
downloadFile(download_url, output_path, progress);

if (tmd_data->contents[i].type & TMD_CONTENT_TYPE_HASHED) {
if (bswap_16(tmd_data->contents[i].type) & TMD_CONTENT_TYPE_HASHED) {
// add a curl handle for the hash file (.h3 file)
snprintf(output_path, sizeof(output_path), "%s/%08X.h3", output_dir, id);
snprintf(download_url, 81, "%s/%08X.h3", base_url, id);
Expand Down

0 comments on commit 0acd687

Please sign in to comment.