mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-09-29 15:38:34 +02:00
Add the method"downloadContentToByteArray" to the NUSDownloadService
This commit is contained in:
parent
897afeeb2a
commit
135e78feda
@ -65,6 +65,11 @@ public final class NUSDownloadService extends Downloader {
|
||||
return downloadFileToByteArray(URL);
|
||||
}
|
||||
|
||||
public byte[] downloadContentToByteArray(long titleID, int contentId) throws IOException {
|
||||
String URL = URL_BASE + "/" + String.format("%016X/%08X", titleID, contentId);
|
||||
return downloadFileToByteArray(URL);
|
||||
}
|
||||
|
||||
/**
|
||||
* For the cert we need a part from a ticket. For this we simply load a public ticket and use it.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user