mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
[makerom] Properly select CCI CryptoType when not manually specified.
This commit is contained in:
@@ -135,10 +135,15 @@ int SetCardInfoBitmask(cardinfo_hdr *hdr, cci_settings *set)
|
||||
|
||||
str = set->rsf->CardInfo.CryptoType;
|
||||
if(!str) {
|
||||
if(set->options.useExternalSdkCardInfo)
|
||||
bitmask |= (3 << 6);
|
||||
else
|
||||
bitmask |= 0;
|
||||
u32 val = 0;
|
||||
if(set->keys->keyset == pki_DEVELOPMENT) {
|
||||
val = 3;
|
||||
}
|
||||
else{
|
||||
val = 0;
|
||||
}
|
||||
|
||||
bitmask |= (val << 6);
|
||||
}
|
||||
else{
|
||||
int val = strtol(str,NULL,10);
|
||||
|
||||
Reference in New Issue
Block a user