mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-26 09:54:18 +01:00
Merge branch 'master' of https://github.com/Maschell/JNUSLib
This commit is contained in:
commit
f743055c1a
16
README.md
16
README.md
@ -1,8 +1,8 @@
|
|||||||
#JNUSLib - All in one library to handle NUS content
|
# JNUSLib - All in one library to handle NUS content
|
||||||
|
|
||||||
JNUSLib is a library written in Java to handle NUS Contents (.app, tmd, tik, cert files) from different sources. It can be easily used in other Applications and is directed to devolpers. It's based on JNUSTool, but is heavily rewritten and extented with even more features.
|
JNUSLib is a library written in Java to handle NUS Contents (.app, tmd, tik, cert files) from different sources. It can be easily used in other Applications and is directed to devolpers. It's based on JNUSTool, but is heavily rewritten and extented with even more features.
|
||||||
|
|
||||||
##Features
|
## Features
|
||||||
Loading NUS Contents from different sources. Currently implemented:
|
Loading NUS Contents from different sources. Currently implemented:
|
||||||
* Local files
|
* Local files
|
||||||
* Files from the NUS Server (Only the part that are needed will be downloaded)
|
* Files from the NUS Server (Only the part that are needed will be downloaded)
|
||||||
@ -24,7 +24,7 @@ For WUD files, following additional operations are possible:
|
|||||||
* Compressing into .wux file format (from .wud and splitted .wud)
|
* Compressing into .wux file format (from .wud and splitted .wud)
|
||||||
* Verifing (comparing) to different wud images.
|
* Verifing (comparing) to different wud images.
|
||||||
|
|
||||||
##How to use it
|
## How to use it
|
||||||
At first you have to import the jnuslib.jar and the common key in the Settings class.
|
At first you have to import the jnuslib.jar and the common key in the Settings class.
|
||||||
```
|
```
|
||||||
Settings.commonKey = Utils.StringToByteArray("12345678901234567890123456789012");
|
Settings.commonKey = Utils.StringToByteArray("12345678901234567890123456789012");
|
||||||
@ -64,7 +64,7 @@ Then for each different source type, you need to use a an own NUSTitleLoader.
|
|||||||
Once the title is loaded, you can use one of the services to extract and decrypt files.
|
Once the title is loaded, you can use one of the services to extract and decrypt files.
|
||||||
Here are some of the operations you can do. Look at the code for the full list of methods.
|
Here are some of the operations you can do. Look at the code for the full list of methods.
|
||||||
|
|
||||||
###Decryption:
|
### Decryption:
|
||||||
|
|
||||||
```
|
```
|
||||||
DecryptionService decrypt = DecryptionService.getInstance(title);
|
DecryptionService decrypt = DecryptionService.getInstance(title);
|
||||||
@ -99,7 +99,7 @@ in.close();
|
|||||||
[...]
|
[...]
|
||||||
```
|
```
|
||||||
|
|
||||||
###Extraction:
|
### Extraction:
|
||||||
```
|
```
|
||||||
//Get the Service for the NUSTitle
|
//Get the Service for the NUSTitle
|
||||||
ExtractionService extract = ExtractionService.getInstance(title);
|
ExtractionService extract = ExtractionService.getInstance(title);
|
||||||
@ -120,7 +120,7 @@ extract.extractCertTo(output);
|
|||||||
|
|
||||||
[...]
|
[...]
|
||||||
```
|
```
|
||||||
###WUD Services
|
### WUD Services
|
||||||
Example for compressing and verifing into .wux files.
|
Example for compressing and verifing into .wux files.
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -134,10 +134,10 @@ Example for compressing and verifing into .wux files.
|
|||||||
WUDService.compareWUDImage(imageUncompressed, imageCompressed);
|
WUDService.compareWUDImage(imageUncompressed, imageCompressed);
|
||||||
```
|
```
|
||||||
|
|
||||||
###Cleanup:
|
### Cleanup:
|
||||||
Call the method cleanup() for a NUSTitle to cleanup/close all opened ressources.
|
Call the method cleanup() for a NUSTitle to cleanup/close all opened ressources.
|
||||||
|
|
||||||
#Credits
|
# Credits
|
||||||
Maschell
|
Maschell
|
||||||
|
|
||||||
Thanks to:
|
Thanks to:
|
||||||
|
Loading…
Reference in New Issue
Block a user