Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokes303 authored Sep 22, 2019
1 parent 92d91eb commit 595d0b9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 6 deletions.
Binary file added meta/hbl/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions meta/hbl/meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1">
<name>WUPDownload</name>
<coder>Pokes303</coder>
<version>1.0</version>
<release_date>20191809000000</release_date>
<short_description>WiiU NUS Downloader</short_description>
<long_description>This app is made for downloading installable content from the NUS directly onto the WiiU SD Card.
If a ticket isn't found on the NUS, you can create fake ones (title.tik) at the start of a download.
Please, don't do piracy with this app (Only download games that you have bought).

Source code can be found here: https://github.com/Pokes303/WUPDownloader
</long_description>

</app>
Binary file added meta/menu/bootDrcTex.tga
Binary file not shown.
Binary file added meta/menu/bootTvTex.tga
Binary file not shown.
Binary file added meta/menu/iconTex.tga
Binary file not shown.
6 changes: 2 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ void readInput() {
}

size_t write_callback(void *ptr, size_t size, size_t nmemb, FILE *stream) {
WHBLogPrintf("Writing file...");
//WHBLogPrintf("Writing file...");
size_t written = fwrite(ptr, size, nmemb, stream);
return written;
}

static int progressCallback(void *clientp, double dltotal, double dlnow) {
WHBLogPrintf("Downloading: %s (%u/%u) [%u%%] %u / %u bytes", downloading, dcontent, contents, (uint32_t)(dlnow / ((dltotal > 0) ? dltotal : 1) * 100), (uint32_t)dlnow, (uint32_t)dltotal);
//WHBLogPrintf("Downloading: %s (%u/%u) [%u%%] %u / %u bytes", downloading, dcontent, contents, (uint32_t)(dlnow / ((dltotal > 0) ? dltotal : 1) * 100), (uint32_t)dlnow, (uint32_t)dltotal);
startRefresh();
if (dltotal == 0)
write(0, 0, "Preparing");
Expand Down Expand Up @@ -570,7 +570,6 @@ int main() {
}
}
exit:
WHBLogPrintf("Exiting...");
SWKBD_Shutdown();
shutdownScreen();

Expand All @@ -580,7 +579,6 @@ int main() {

FSShutdown();
VPADShutdown();
socket_lib_finish();
WHBLogUdpDeinit();
WHBProcShutdown();

Expand Down
3 changes: 1 addition & 2 deletions src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ void writeMainMenu() {
write(0, 4, "Press (A) to download a content from the NUS with the title ID");
write(0, 5, "Press (Y) to generate a fake <title.tik> file");

write(0, 7, "Press (HOME) to exit");

write(0, 7, "Press (HOME) to exit on HBL");

write(0, 14, "DO NOT EJECT THE SD CARD OR THE APPLICATION WILL CRASH!");

Expand Down

0 comments on commit 595d0b9

Please sign in to comment.