mirror of
https://github.com/StudentBlake/XCI-Explorer
synced 2024-11-10 06:34:15 +00:00
fallback if MasterKey revision not supported by hactool
This commit is contained in:
parent
ad13a76d50
commit
a9ae8163d3
2 changed files with 10 additions and 3 deletions
|
@ -501,7 +501,14 @@ namespace XCI_Explorer {
|
|||
TB_SDKVer.Text = strArray[1].Trim();
|
||||
}
|
||||
else if (strArray[0] == "Master Key Revision") {
|
||||
TB_MKeyRev.Text = "MasterKey" + strArray[1].Trim();
|
||||
string MasterKey = strArray[1].Trim();
|
||||
if (MasterKey.Contains("Unknown")) {
|
||||
int keyblob;
|
||||
if (int.TryParse(new string(MasterKey.TakeWhile(Char.IsDigit).ToArray()), out keyblob)) {
|
||||
MasterKey = Util.GetMkey((byte)(keyblob + 1)).Replace("MasterKey", "");
|
||||
}
|
||||
}
|
||||
TB_MKeyRev.Text = "MasterKey" + MasterKey;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,9 +33,9 @@ namespace XCI_Explorer {
|
|||
case 4:
|
||||
return "MasterKey3 (4.0.0-4.1.0)";
|
||||
case 5:
|
||||
return "MasterKey4 (5.0.0+)";
|
||||
return "MasterKey4 (5.0.0-5.1.0)";
|
||||
case 6:
|
||||
return "MasterKey5 (?)";
|
||||
return "MasterKey5 (6.0.0)";
|
||||
case 7:
|
||||
return "MasterKey6 (?)";
|
||||
case 8:
|
||||
|
|
Loading…
Reference in a new issue