mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 00:39:03 +00:00
Add support for custom decrypted TitleKey
This commit is contained in:
@@ -559,6 +559,14 @@ int SetArgument(int argc, int i, char *argv[], user_settings *set)
|
||||
set->cia.randomTitleKey = true;
|
||||
return 1;
|
||||
}
|
||||
else if (strcmp(argv[i], "-titlekey") == 0) {
|
||||
if (ParamNum != 1) {
|
||||
PrintArgReqParam(argv[i], 1);
|
||||
return USR_ARG_REQ_PARAM;
|
||||
}
|
||||
set->cia.titleKey = argv[i + 1];
|
||||
return 2;
|
||||
}
|
||||
else if (strcmp(argv[i], "-dlc") == 0) {
|
||||
if (ParamNum) {
|
||||
PrintNoNeedParam(argv[i]);
|
||||
@@ -990,6 +998,7 @@ void DisplayExtendedHelp(char *app_name)
|
||||
printf(" -dver <version> Data-title version\n");
|
||||
printf(" -deviceid <hex id> 3DS unique device ID\n");
|
||||
printf(" -esaccid <hex id> e-Shop account ID\n");
|
||||
printf(" -titlekey <titlekey> Specify decrypted title key\n");
|
||||
printf(" -rand Use a random title key\n");
|
||||
printf(" -dlc Create DLC CIA\n");
|
||||
printf(" -srl <srl file> Package a TWL SRL in a CIA\n");
|
||||
|
||||
Reference in New Issue
Block a user