mirror of
https://github.com/Maschell/JNUSTool.git
synced 2024-11-27 18:34:18 +01:00
Using the titleid from the tmd as IV for the key decryption, not the given one
,
This commit is contained in:
parent
f03719487f
commit
8959bced34
@ -104,16 +104,17 @@ public class NUSTitle {
|
|||||||
Logger.log("Downloading of missing files is not enabled. Exiting");
|
Logger.log("Downloading of missing files is not enabled. Exiting");
|
||||||
System.exit(2);
|
System.exit(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(key != null){
|
if(key != null){
|
||||||
Logger.log("Using ticket from parameter.");
|
Logger.log("Using ticket from parameter.");
|
||||||
ticket = new TIK(key,titleId);
|
ticket = new TIK(key,tmd.titleID);
|
||||||
}else{
|
}else{
|
||||||
if(Settings.useCachedFiles){
|
if(Settings.useCachedFiles){
|
||||||
File f = new File(getContentPath() + "/" + "title.tik");
|
File f = new File(getContentPath() + "/" + "title.tik");
|
||||||
if(f.exists()){
|
if(f.exists()){
|
||||||
Logger.log("Using cached cetk.");
|
Logger.log("Using cached cetk.");
|
||||||
ticket = new TIK(f,titleId);
|
ticket = new TIK(f,tmd.titleID);
|
||||||
}else{
|
}else{
|
||||||
Logger.log("No cached ticket found.");
|
Logger.log("No cached ticket found.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user